Skip to content

xiaomingplus/hugo-theme-we

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

About

hugo中文主题 we

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published