3 Star 0 Fork 1

Gitee 极速下载 / ZenHo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/vran-dev/hugo-zenHo
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Languange

English | 中文

What

ZenHo 是一个极简风格的 Hugo 主题

All good things come to thos who wait.

screenshot

Features

  • Google 统计
  • disqus 评论插件
  • Baidu 统计
  • 文章目录
  • utteranc 评论插件
  • Github 项目卡片展示

How to use

步骤一:

​ 如果你是第一次了解到 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 目录

Github project card

ZenHo 使用 github-readme-stats 和 shortCode 实现了 Github 项目展示。

github-project-card

你可以使用以下代码在你的文章中以卡片的形式展示 Github 项目

{{< github-project username="your github user name" repo="your github project name" >}}

比如

{{< github-project username="vran-dev" repo="hugo-zenHo" >}}

Configuration Override

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

Screenshots

  • Home

  • post

  • Archive

  • tags

  • About

空文件

简介

ZenHo 是一款极简风格的 Hugo 博客主题,没有多余的依赖,让读者更专注于你的内容 展开 收起
HTML/CSS
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
HTML/CSS
1
https://gitee.com/mirrors/ZenHo.git
git@gitee.com:mirrors/ZenHo.git
mirrors
ZenHo
ZenHo
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891