Skip to content

Upgrade to v2.5

There are a few major update in v2.5:

  • Changed language to a more universal convention using zh-CN instead of cn.
  • Added support for Traditional Chinese.
  • Changed code highlight engine from Prism to Shiki supporting VSCode color themes.

Update Language Config

Change the language config in _config.aurora.yml under site config

The available options are as follow:

  • en (English)
  • zh-CN (Chinese Simplify)
  • zh-TW (Traditional Chinese)
yaml
#! ---------------------------------------------------------------
#! Site Configs
#! @docs https://obsidianext.tridiamond.tech/guide/configuration.html
#! ---------------------------------------------------------------
site:
  subtitle: 三钻 Benny X Guo
  slogan: 用匠人精神开发出艺术
  author: 三钻
  nick: bennyxguo
  link: '/'
  description: <p>Programming a piece of art.</p> <p>用<b>匠人精神</b>开发出<b>艺术</b>。</p>
  language: zh-CN
  multi_language: true
  logo:
  avatar:
  #...
#! ---------------------------------------------------------------
#! Site Configs
#! @docs https://obsidianext.tridiamond.tech/guide/configuration.html
#! ---------------------------------------------------------------
site:
  subtitle: 三钻 Benny X Guo
  slogan: 用匠人精神开发出艺术
  author: 三钻
  nick: bennyxguo
  link: '/'
  description: <p>Programming a piece of art.</p> <p>用<b>匠人精神</b>开发出<b>艺术</b>。</p>
  language: zh-CN
  multi_language: true
  logo:
  avatar:
  #...

Change Code Highlight

Code highlight engine is changed to Shiki, for it to work we need to update the highlight and prismjs configs in _config.yml.

yaml
highlight:
  enable: false
prismjs:
  enable: false
highlight:
  enable: false
prismjs:
  enable: false

Then add the new shiki config in your _config.aurora.yml config file.

yaml
#! ---------------------------------------------------------------
#! Highlighter Shiki
#! ---------------------------------------------------------------
shiki:
  enable: true
  theme:
  externalTheme:
  backgroundColor: '#1a1a1a'
#! ---------------------------------------------------------------
#! Highlighter Shiki
#! ---------------------------------------------------------------
shiki:
  enable: true
  theme:
  externalTheme:
  backgroundColor: '#1a1a1a'

Advance Usage

More advance usage check it out here

Rebuild all the static blog files

After configuring all of above, you will need to rebuild all the blog static files for the them to adapt and update according to the new configs.

shell
hexo clean && hexo g
hexo clean && hexo g

Done!!🎉🎉🎉 Enjoy!

Released under the MIT License.