Code Monkey home page Code Monkey logo

0218's Introduction

MemeBox

Website template for meme collection.

简体中文


Description

This template is extracted from NoneMeme/NoneMeme.

MemeBox can contain various contents including images and markdown documents.

Build

  1. Prepare a make tool.

  2. Generate your repo with this template.

  3. Clone your repo.

  4. Open a shell and switch to the repo directory.

  5. Run make.

    NOTE: The default PAGELANG is now en (English).

    Read more info in Custom text.

  6. Add your contents to art/ (for documents) or meme/ (for pictures).

    NOTE: MemeBox does not include any icon files.

    You should prepare your icons and put them into static/ folder.

    See the output from make for more information.

  7. Commit and push.

Custom text

Usually, you may expect to change some text rather than "MemeBox" etc.

For this, you can define these temporary environment variables below to override the default:

Name Description
PAGELANG Page language mark for .html file, also decides the default text, e.g. "zh"
TITLE The title of your memebox, e.g. "MemeBox"
DESC A short description for your memebox, e.g. "Joy for Everyone"
TDESC A description for the text part
FOOTER Footer on every pages

Just like this:

PAGELANG=en TITLE=Foo DESC=Bar FOOTER="Lorem ipsum" make

If the default text does not satisfy you, don't worry, they are also customizable with the way above:

Name Description
T_MEMEPIC Indicates a hyperlink jumping to picture page
T_MEMETXT Indicates a hyperlink jumping to text page
T_DOWNLOAD A hint for downloading a image
T_ANOTHER A hint for randomly picking a image
T_BACK A hint for leaving the full view
T_ZOOMIN A hint for entering the full view
T_NIMGS Images summary text

License

This template is under the MIT License.

Special thanks

0218's People

Contributors

yzyyz1387 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.