hugo中文主题 we
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
archetypes for update Oct 15, 2017
images first commit Jan 14, 2016
layouts Merge branch 'master' of github.com:xiaomingplus/hugo-theme-we Oct 15, 2017
static for update Jan 18, 2016
.gitignore first commit Jan 14, 2016
LICENSE.md first commit Jan 14, 2016
README.md for update Oct 15, 2017
theme.toml first commit Jan 14, 2016

README.md

We

We是一款基于hugo的中文主题,简约而优雅,单栏,适合技术与写作类博客.

Demo可以参见我的博客: http://xiaomingplus.com

We screenshot

优点

  • 简约出屎了,没有任何杂质
  • 支持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配置

在配置文件中添加你的disqus的shortname就行.

TOML

[params]
  disqusShortname = "spf13"

YAML

params:
  disqusShortname: "spf13"

关于gitalk的配置见

https://github.com/gitalk/gitalk

License

拿去用,拿去改呗,但是得感谢下我.