A clean blog theme for hugo.
- Clone this repository to your hugo theme directory.
$ mkdir themes
$ cd themes
$ git clone https://github.com/akccakcctw/clean.git
- Edit your config.yml:
# config.yml
theme: "clean"
- Preview locally with
hugo server
$ hugo server
Then you can go to https://localhost:1313 and this theme should be visible.
Add lastmod
as parameter in the front-matter. You can get the date string by typing date +%FT%T%z
within command line.
---
lastmod: 2022-04-29T10:50:09+0800
---
avaiable notation type:
- alert
- note
- tip
- warning
{{<warning>}}
blah blah...
{{</warning>}}
We load katex library from cdn dynamically, add katex
as parameter in the front-matter if you want to use it.
---
katex: true
---
npx git-cz
Clean is licensed under the MIT License.