Skip to content

kiwirafe/hexo-theme-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-theme-world

A Hexo theme devoted to i18n (multilingual support).

Installation

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

Usage

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.

i18n

Please follow these steps for internationalization

  1. 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
  1. 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.

  2. At the right end of your _config.yml file, change the language settings if needed:

generator_plus:
  language: ['first language', 'second language']

Front-Matter

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
---

About

A Hexo theme devoted to i18n (multilingual support).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published