We是一款基于hugo的中文主题,简约而优雅,单栏,适合技术与写作类博客.
Demo可以参见我的博客: http://xiaomingplus.com
- 简约出屎了,没有任何杂质
- 支持Disqus评论
- 支持分类/标签
- 支持分页
- 支持自定义导航
- 支持百度/腾讯统计服务
git remote add -f we https://github.com/xiaomingplus/hugo-theme-we.git
git subtree add --prefix=themes/we we master --squash
然后编辑你的配置文件:
-
config.toml
theme = "we"
-
config.yaml
theme: "we"
给你一个we主题示例的配置文件吧:
baseurl = "http://localhost:1313/"
title = "We"
Paginate = 20
theme= "we"
hasCJKLanguage = true
[[menu.main]]
name = "关于我"
identifier = "about"
url = "/about"
[params]
disqusShortname = "spf13"
tencentAnalyticsId = "12345678"
baiduAnalyticsId = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
gitalkClientID = "xx"
gitalkClientSecret = "xx"
gitalkRepo = "xiaomingplus.github.io"
gitalkOwner = "xiaomingplus"
gitalkAdmin = ["xiaomingplus"]
在配置文件中添加你的disqus的shortname就行.
TOML
[params]
disqusShortname = "spf13"
YAML
params:
disqusShortname: "spf13"
https://github.com/gitalk/gitalk
拿去用,拿去改呗,但是得感谢下我.