In the root directory of your site:
$ npm uninstall hexo-generator-index hexo-generator-archive hexo-generator-category hexo-generator-tag
$ npm install hexo-generator-plus --save
$ git clone https://github.com/kiwirafe/hexo-theme-world.git themes/world
Change the theme to world in _config.yml:
theme: world
and turn off syntax highlighter (the theme uses customized CDN instead):
syntax_highlighter:
If your site contains only one language, there's no additional actions required. This package will generate files as normal.
Please follow these steps for internationalization
- Create a new folder for each language, and put all posts and pages in the corresponding folder. For example:
sources/
en/
post1.md
post2.md
zh/
post3.md
post4.md
-
Copy the content from
theme/world/_config.world.yml
into your main_config.yml
file. This action will only modify a few lines to enable i18n support. -
At the right end of your
_config.yml
file, change the language settings if needed:
generator_plus:
language: ['first language', 'second language']
This theme supports categories and tags. All you have to do is add the following to front-matter:
---
category: "My Category"
tag: "My Tag"
---
This theme also supports Mathjax:
---
mathjax: true
---