yzyyz1387 / 0218

102118

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

102118

License:MIT License


Languages

Language:Shell 36.0%Language:Python 33.2%Language:Makefile 20.3%Language:CSS 10.6%