English | 中文
ZenHo is a pretty simple & nice theme for Hugo
All good things come to thos who wait.
- Disqus comment
- Google Analytics
- Baidu Analytics
- Table of Content
- Social list
- Utteranc comment
- shortcode: github project card
Step 1 :
If you know Hugo for the first time,you need to learn official tutorial first.
Step 2 :
you can use hugo-zenHo/archetypes/default.md
replace your blog's archetypes/default.md
`
Step 3 :
If you want to custon your about page, you should create markdown file content/about/_index.md
, then write it in markdown syntax.
Step 4:
Copy [Configuration Override](##Configuration Override) content to your config.toml,for better highlight, you can use xcode
style
[markup]
[markup.highlight]
style = "xcode"
More info could be found at exampleSite directory.
ZenHo use shortCode and github-readme-stats to implement Github Project card.
you can use the following code to show card in post
{{< github-project username="your github user name" repo="your github project name" >}}
such as
{{< github-project username="vran-dev" repo="hugo-zenHo" >}}
You can copy some item to your config.toml
.
baseURL = "http://localhost:1313/"
languageCode = "en-us"
title = "ZenHo"
paginate = 6
[params]
enableSummary = true
useDescriptionReplaceSummary = true
enableToc = false
author = "vran"
bio = "All good things come to thos who wait."
# baidu analytics
enableBaiduAnalytics = false
baiduAnalyticsToken = ""
googleSiteVerificationToken = ""
# social page url
github = "#"
twitter = "#"
facebook = "#"
email = ""
# utteranc comment
enableUtteranc = false
[params.utteranc]
repo="username/github-page-repository"
theme="github-light"
crossorigin="anonymous"
issueTerm="pathname"
label="Comment"
[markup]
[markup.highlight]
style = "xcode"
[markup.tableOfContents]
endLevel = 2
ordered = false
startLevel = 2