waynerv / waynerv.github.io

静态博客
https://waynerv.com
6 stars 0 forks source link

posts/setup-blog-with-hugo-and-github-pages/ #1

Closed utterances-bot closed 3 years ago

utterances-bot commented 3 years ago

使用 Hugo 和 GitHub Pages 部署个人博客 | Shall We Code?

作为一个已经入行了一年多的(老)技术人,维护一个看得过去的个人博客是很有必要的。 刚学……

https://www.waynerv.com/posts/setup-blog-with-hugo-and-github-pages/

waynerv commented 3 years ago

测试评论功能 :smile:

rowanlau commented 2 years ago

您好,谢谢分享。 按步骤操作后,个人仓库和项目仓库都可以成功上传,只是博客网页一直不显示,请问是什么原因?(显示为404:There isn't a GitHub Pages site here.)

Longchuanzheng commented 2 years ago

感谢您的教程,我也选择了meme这个theme,在添加测试功能的时候有些疑惑,有些教程中只是直接修改配置文件(https://www.midfang.com/hugo-utterances-comment-system/),也有些教程改了html模板,您能否可以分享一下您的解决思路呢

waynerv commented 2 years ago

感谢您的教程,我也选择了meme这个theme,在添加测试功能的时候有些疑惑,有些教程中只是直接修改配置文件(https://www.midfang.com/hugo-utterances-comment-system/),也有些教程改了html模板,您能否可以分享一下您的解决思路呢?

meme 使用 utterance 的方法很简单啊,修改一下配置文件 config.toml 就行了,我的配置如下:

 # 是否开启(全局设置)
    enableComments = true
    # 说明:文章的 Front Matter 中的 `comments`
    #      的优先级高于此处

    # 直接加载评论,不需要手动点击按钮加载
    autoLoadComments = true

## Utterances
    enableUtterances = true
    utterancesRepo = "waynerv/waynerv.github.io"
    utterancesIssueTerm = "pathname"
    utterancesTheme = "github-light"
    utterancesThemeDark = "photon-dark"
    utterancesLabel = "comment"
    # 说明:https://utteranc.es/
Longchuanzheng commented 2 years ago

感谢指导: )没想到enableComments这里还需要设置。