Skip to content
master
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

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

About

hugo中文主题 we

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.