ppoffice / hexo-theme-minos

A simple and retro styled Hexo theme, concentrated more on your ideas.
http://ppoffice.github.io/hexo-theme-minos
MIT License
767 stars 200 forks source link

设置toc为true后,文章导航栏中文显示乱码 #110

Closed icepng closed 4 years ago

icepng commented 4 years ago

中文乱码问题

ppoffice commented 4 years ago

@icepng 请提供更多信息。

icepng commented 4 years ago

你好,如下图: 1

ppoffice commented 4 years ago

Minos主题升级到最新commit了么?

icepng commented 4 years ago

嗯嗯 拉的master分支

ppoffice commented 4 years ago

@icepng 我这里无法复现这个问题。请提供你的出问题的markdown文件和根目录下的package.json。并确保你在生成html之前使用hexo clean清理了缓存。

icepng commented 4 years ago

markdown文件:

---
title: test 中文
date: 2020-04-19 11:25:44
tags:
---

## test 
just for test

## 中文显示
中文

## 中文显示2

package.json

{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "hexo": {
    "version": "3.9.0"
  },
  "dependencies": {
    "hexo": "^3.9.0",
    "hexo-deployer-git": "^0.2.0",
    "hexo-excerpt": "^1.1.2",
    "hexo-generator-archive": "^0.1.4",
    "hexo-generator-baidu-sitemap": "^0.1.2",
    "hexo-generator-category": "^0.1.3",
    "hexo-generator-feed": "^1.2.2",
    "hexo-generator-index": "^0.2.0",
    "hexo-generator-json-content": "^2.2.0",
    "hexo-generator-search": "^2.1.1",
    "hexo-generator-sitemap": "^1.2.0",
    "hexo-generator-tag": "^0.2.0",
    "hexo-renderer-ejs": "^0.2.0",
    "hexo-renderer-jade": "^0.3.0",
    "hexo-renderer-marked": "^0.2.10",
    "hexo-renderer-sass": "^0.4.0",
    "hexo-renderer-stylus": "^0.3.3",
    "hexo-server": "^0.2.0"
  }
}

谢谢。

icepng commented 4 years ago

2

这是显示的效果

ppoffice commented 4 years ago

@icepng 请升级Hexo到4.0以上版本。

https://github.com/ppoffice/hexo-theme-minos/blob/site/package.json