onlyice / blog

Home Page:https://blog.zhiheng.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zhiheng's Blog

Usage

  1. 增加一个 Markdown 文件
  2. hugo server -D

Theme

主题用了 PaperMod。使用 submodule 方法引入的主题:

git submodule add https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod --depth=1

clone 下博客时,需要运行命令来拉取 submodule:

git submodule update --init --recursive

可以这样更新主题:

git submodule update --remote --merge

Customize

为了定制一些样式,在 config.yml 中定义了 customCSS,通过 layouts/partials/extend_head.html 引入了它。extend_head.html 是 PaperMod 主题预留的 partial,供用户在 <head> 中加入自己的代码。

About

https://blog.zhiheng.io/


Languages

Language:CSS 87.9%Language:HTML 12.1%