hugo-theme-minima/README.md

70 lines
2.4 KiB
Markdown
Raw Normal View History

2021-07-18 10:34:01 +02:00
# Minima
2022-11-08 16:53:16 +01:00
A clean and minimal Hugo theme porting from [Hexo Minima](https://github.com/adisaktijrs/hexo-theme-minima). See the [demo site](https://mivinci.github.io/hugo-theme-minima).
2022-02-17 12:55:29 +01:00
2022-11-08 16:53:16 +01:00
> The main branch is in development stage, UI or configuration may vary.
2021-07-18 10:34:01 +02:00
2021-07-18 15:40:40 +02:00
![screenshot](./images/tn.png)
2021-07-18 10:34:01 +02:00
## Features
2022-11-08 16:53:16 +01:00
- [x] Dark mode
- [x] Multilingual mode
- [x] Code highlighting - VSCode dark+
- [x] Math - KaTeX
- [x] Flowcharts - Mermaid
- [x] Comment - Disqus, Utterances, Giscus
2021-07-18 15:40:40 +02:00
- [x] Google analytics
2022-11-08 16:53:16 +01:00
- [x] External link
2022-02-17 12:55:29 +01:00
- [x] RSS
2021-07-18 10:34:01 +02:00
## Usage
2021-11-12 09:30:39 +01:00
Before using Minima, make sure you've got Hugo (extended version) installed on your device.
2021-07-18 15:40:40 +02:00
### Installation
2022-11-08 16:53:16 +01:00
You can use either `git submodule` or `git clone` to fetch this theme into the directory where Hugo places themes.
#### Git Submodule
2021-07-18 15:40:40 +02:00
```bash
git submodule add --depth 1 https://github.com/mivinci/hugo-theme-minima.git themes/minima
```
2022-11-08 16:53:16 +01:00
#### Git Clone
2021-07-18 15:40:40 +02:00
```bash
git clone https://github.com/mivinci/hugo-theme-minima.git themes/minima
```
### Configuration
2022-11-08 16:53:16 +01:00
Follow [exampleSite/config.toml](https://github.com/Mivinci/hugo-theme-minima/blob/main/exampleSite/config.toml) and edit your own one.
2021-07-18 15:40:40 +02:00
### Supported Front Matters
| Field | Type | Explanation |
2022-01-26 16:20:50 +01:00
|:----------- |:------ |:------------------------------------------------------ |
| title | string | Title of the post |
| description | string | Description of the post |
| date | string | Datetime when the post is written |
2022-01-30 08:12:29 +01:00
| link | string | If set, the post will redirect to an external link |
2021-08-19 06:42:47 +02:00
| 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 |
2021-07-18 15:40:40 +02:00
| math | bool | True if the post needs to render math formulas |
2022-01-26 16:20:50 +01:00
| mermaid | bool | True if the post needs to render mermaid diagrams |
2021-07-18 15:40:40 +02:00
| comment | bool | True if the post allows people to make comments |
2022-01-26 16:20:50 +01:00
| draft | bool | True if the post isn't already for publishing |
2022-01-30 08:12:29 +01:00
2022-11-08 16:53:16 +01:00
### Contribution
2022-02-17 12:55:29 +01:00
2022-11-08 16:53:16 +01:00
I'm currently looking for i18n contributors :)
2022-01-30 08:12:29 +01:00
2021-07-18 15:40:40 +02:00
### Feedback
Feedbacks are welcome [here](https://github.com/Mivinci/hugo-theme-minima/issues).