代码拉取完成,页面将自动刷新
English | 中文
ZenHo 是一个极简风格的 Hugo 主题
All good things come to thos who wait.
步骤一:
如果你是第一次了解到 Hugo 的话,你需要先看一下官方的入门教程
步骤二:
你可能需要用 hugo-zenHo/archetypes/default.md
替换 Hugo 默认的 archetypes/default.md
文件
步骤三:
如果你要自定义 about 页面,需要创建 content/about/_index.md
文件, 然后以 markdown 格式书写内容即可
步骤四:
复制 [Configuration Override](##Configuration Override) 下的内容到你的 config.toml,为了更好的代码高亮展示,建议设置主题为 xcode
[markup]
[markup.highlight]
style = "xcode"
具体的实例可以参考 exampleSite 目录
ZenHo 使用 github-readme-stats 和 shortCode 实现了 Github 项目展示。
你可以使用以下代码在你的文章中以卡片的形式展示 Github 项目
{{< github-project username="your github user name" repo="your github project name" >}}
比如
{{< 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
Home
post
Archive
tags
About
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。