Closed zjjxwhh closed 3 years ago
问题同样可见于提供的example site:
部分文章左上角不显示返回按钮
没有 TOC 的文章不会显示。
正文开头为H1时不显示返回按钮:
修改 config.yaml
,把 markup.tableOfContents.startLevel
改成 1
markup:
tableOfContents:
endLevel: 4
ordered: true
startLevel: 1
修改 DefaultContentLanguage 参数后,本地渲染按钮文字为中文,上传github渲染之后为英文,且按钮大小不一致
语言的问题应该和主题没关系,可能是上传出了问题。
按钮大小问题已经在 master 分支解决了 (#245),但是还没发新版本,也就没有编译出最新的 CSS。
改成用 Hugo Extended 版本即可。
全部解决了,果然全都是我配置的问题:sweat_smile: 真的非常感谢帮助
Describe the bug
关于文章左上角的返回按钮
DefaultContentLanguage
参数后,本地渲染按钮文字为中文,上传github渲染之后为英文,且按钮大小不一致Expected behavior
DefaultContentLanguage
参数,按钮大小一致To Reproduce
Test
页面正文开头为H1时不显示返回按钮:
正文开头为H2时显示返回按钮:
DefaultContentLanguage
参数Screenshots
Environment
Additional context
Add any other context about the problem here.
If it's a UI issue, fill the following information:
刚开始用hugo,看了你的中文文档,尝试了一下发现这些问题,如果是我自己的问题也请一定告诉我,非常感谢!
Content of config.yaml
Link to the demo site and/or source repository:
https://blog.hervey.top/p/test.html
https://github.com/zjjxwhh/Hugo-Blog