mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 19:40:55 +08:00
feat: 只支持 hexo 5.0.0 及以上版本
feat: toc改為aside顯示,去掉sidebar feat: 手機toc ui 修改 feat: 去掉 toc auto_open 配置 feat: 文章標題改為居中 improvement: 完善note標籤在readmode上的顯示 improvement: 精簡css 和 js improvement: pjax 優化 fix: 修復當文章頁top_img設為false時,閲讀模式下文章內容不顯示的bugs
This commit is contained in:
@@ -4,9 +4,9 @@ hexo.extend.filter.register('before_generate', () => {
|
||||
// Get first two digits of the Hexo version number
|
||||
var hexoVer = hexo.version.replace(/(^.*\..*)\..*/, '$1')
|
||||
|
||||
if (hexoVer < 4.2) {
|
||||
logger.error('Please update Hexo to V4.2.0 or higher!')
|
||||
logger.error('請把 Hexo 升級到 V4.2.0 或更高的版本!')
|
||||
if (hexoVer < 5) {
|
||||
logger.error('Please update Hexo to V5.0.0 or higher!')
|
||||
logger.error('請把 Hexo 升級到 V5.0.0 或更高的版本!')
|
||||
process.exit(-1)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user