【发布时间】:2021-11-09 00:27:03
【问题描述】:
我使用以下代码创建了带有 HUGO 0.88.1 的 blogdown 站点;
new_site(theme = 'puresyntax71/hugo-theme-chunky-poster',
format = 'toml')
根据我所遵循的说明,应该在查看器面板上加载一个站点,而这并没有发生。
我已经尝试了 check_site() 函数并且在我得到的结果内;
Checking .gitignore
| Checking for items to remove...
○ Nothing to see here - found no items to remove.
| Checking for items to change...
○ Nothing to see here - found no items to change.
| Checking for items you can safely ignore...
○ Found! You have safely ignored: .DS_Store, Thumbs.db
| Checking for items to ignore if you build the site on Netlify...
● [TODO] When Netlify builds your site, you can safely add to .gitignore: /public/, /resources/
| Checking for files required by blogdown but not committed...
● [TODO] Found 1 file that should be committed in GIT:
layouts/shortcodes/blogdown/postref.html
所以我去检查上面提到的短代码,它有以下内容;
{{ if eq (getenv "BLOGDOWN_POST_RELREF") "true" }}{{ .Page.RelPermalink }}{{ else }}{{ .Page.Permalink }}{{ end }}
如何按照指示将该文件提交到 GIT?这就是我没有预览网站的原因吗?
注意:我之前没有提到的重要信息;以下是我尝试serve_site()时收到的错误代码
Launching the server via the command:
C:/Users/User/AppData/Roaming/Hugo/0.88.1/hugo.exe server --bind 127.0.0.1 -p 4321 --themesDir themes -t hugo-theme-chunky-poster -D -F --navigateToChanged
Error: "C:\Users\User\Documents\20210913_blogdown\web-tea\config.toml:1:1": unmarshal failed: toml: table markup already exists
【问题讨论】:
标签: r git r-markdown hugo blogdown