Closed yunnysunny closed 2 years ago
Thanks for opening this issue, maintainers will get back to you as soon as possible!
你用的是旧版本,NexT 已经移除 Velocity 了。请先更新主题。
使用的next是最新版,具体可以看 package.json
{
"name": "hexo-theme-next",
"version": "8.7.1",
"description": "Elegant and powerful theme for Hexo.",
"main": "package.json",
"files": [
"docs",
"languages",
"layout",
"scripts",
"source",
"_config.yml",
"_vendors.yml"
],
"scripts": {
"eslint": "eslint scripts/ source/js test/",
"prepare": "node .githooks/install.js",
"stylint": "stylint source/css/",
"test": "mocha test/index.js",
"test-cov": "nyc npm test"
},
"repository": "next-theme/hexo-theme-next",
"keywords": [
"hexo",
"theme",
"next"
],
"author": "NexT (https://theme-next.js.org)",
"license": "AGPL-3.0-or-later",
"bugs": {
"url": "https://github.com/next-theme/hexo-theme-next/issues"
},
"homepage": "https://theme-next.js.org",
"devDependencies": {
"@next-theme/eslint-config": "0.0.3",
"chai": "4.3.4",
"eslint": "7.32.0",
"hexo": "5.4.0",
"hexo-renderer-marked": "4.1.0",
"js-yaml": "4.1.0",
"mocha": "9.1.1",
"nyc": "15.1.0",
"stylint": "2.0.0"
}
}
代码参见:https://github.com/yunnysunny/yunnysunny.github.io/blob/feature/next-8/themes/next/package.json
好的,我用你仓库里的feature/next-8
分支测试了一下,是正常的,你执行一下hexo clean
试试
果然可用了,看上像是 hexo 本身的bug。
问题解决了就好,有其他问题欢迎回复~
This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs.
Issue Checklist
Actual behavior
使用 hexo serve 加载的页面和 hexo g 生成后的加载的页面内容不一致。 已 muse.js 举例,使用 hexo serve 加载的是这样的:
而是用 hexo g 生成的页面中加载的 muse 是这样的:
Environment Information
Node.js and NPM Information
Package dependencies Information
Hexo Configuration
NexT Configuration
Other Information