A clean and minimal Hugo theme.
Find a file
2021-12-02 13:52:55 +08:00
.github/workflows fix gh action 2021-08-23 22:20:39 +08:00
archetypes Initial commit 2021-07-18 16:34:01 +08:00
assets add 3 kinds of buttons to open toc content 2021-12-02 13:52:55 +08:00
data add toc 2021-08-04 09:49:55 +08:00
docs 添加中文说明书 2021-11-27 13:48:40 +08:00
exampleSite add 3 kinds of buttons to open toc content 2021-12-02 13:52:55 +08:00
images add 3 kinds of buttons to open toc content 2021-12-02 13:52:55 +08:00
layouts add 3 kinds of buttons to open toc content 2021-12-02 13:52:55 +08:00
static mermaid support 2021-08-19 12:42:47 +08:00
.gitignore enable reading template variable from JS files 2021-08-23 21:40:38 +08:00
config.toml add 3 kinds of buttons to open toc content 2021-12-02 13:52:55 +08:00
LICENSE Initial commit 2021-07-18 16:34:01 +08:00
Makefile some styles fixes 2021-11-06 15:28:56 +08:00
README.md 添加中文说明书 2021-11-27 13:48:40 +08:00
theme.toml Initial commit 2021-07-18 16:34:01 +08:00

Minima

A Clean and minimal Hugo theme porting from Minima on Hexo. Click me to take a look at the demo site.

screenshot

Features

  • Light/dark mode
  • VSCode-style code hightlighting
  • KaTeX
  • Mermaid
  • Google analytics
  • Disqus/Utterances comments
  • Optional ToC

Usage

Before using Minima, make sure you've got Hugo (extended version) installed on your device.

Installation

Suppose blog is where you place your sources.

cd blog
git init
git submodule add --depth 1 https://github.com/mivinci/hugo-theme-minima.git themes/minima

Or clone directly if you don't wanna use the Git submodule.

git clone https://github.com/mivinci/hugo-theme-minima.git themes/minima

Anyways, you just need to put Minima under the blog/themes directory.

Configuration

Follow exampleSite/config.toml and edit your own blog/config.toml file.

Supported Front Matters

Field Type Explanation
title string Title of the post, will be rendered in a h1 tag
description string Description of the post, will be rendered in a p tag
date string Datetime that the post is written
categories array Array of categories the posts belongs to
series array Array of series the post belongs to
tags array Array of tags the posts is related to
math bool True if the post needs to render math formulas
mermaid bool True if the post needs to render mermaid graphs
comment bool True if the post allows people to make comments
draft bool True if the post isn't already to production
toc bool True if the post needs a ToC

Feedback

Feedbacks are welcome here.