hexo-theme-mirror
A hexo theme for creating a mirror's website, used by BJTU Free and Open Source Software Mirror.
Usage
-
Use hexo to create a website, use npm to remove
hexo-generator-index
, because we will have a custom index. Installhexo-renderer-nunjucks
andhexo-renderer-stylus
. -
Clone this repo to
YOURSITE/themes/mirror
. -
Edit
YOURSITE/themes/mirror/_config.yml
,YOURSITE/_config.yml
. -
Create different page as you
menu
sector inYOURSITE/themes/mirror/_config.yml
, if you want to have a mirror table, addlayout: indexTable
toYOURSITE/source/index.html
(or markdown file). -
Added your json files, one is
YOURSITE/source/status/task_status.json
, use mirror to generate it. Another isYOURSITE/source/help/desc_help.json
, you can get a example here.