/clean

A clean blog theme for hugo

Primary LanguageHTMLMIT LicenseMIT

Clean

A clean blog theme for hugo.

Commitizen friendly

preview

Getting Started

  1. Clone this repository to your hugo theme directory.
$ mkdir themes
$ cd themes
$ git clone https://github.com/akccakcctw/clean.git
  1. Edit your config.yml:
# config.yml
theme: "clean"
  1. Preview locally with hugo server
$ hugo server

Then you can go to https://localhost:1313 and this theme should be visible.

Features

Last Modified Date

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
---

Notation Block

avaiable notation type:

  • alert
  • note
  • tip
  • warning
{{<warning>}}
blah blah...
{{</warning>}}

Math Typesetting with KaTex

We load katex library from cdn dynamically, add katex as parameter in the front-matter if you want to use it.

---
katex: true
---

Development

Commit

npx git-cz

License

Clean is licensed under the MIT License.

Author

Rex Tsou