|
|
|
|
|
|
|
|
# Minimal |
|
|
|
|
|
|
|
|
# Minimal without dependencies |
|
|
|
|
|
|
|
|
Personal blog theme powered by [Hugo](https://gohugo.io). |
|
|
|
|
|
A live demo is available [here](https://themes.gohugo.io/theme/minimal/). |
|
|
|
|
|
|
|
|
Personal blog theme powered by [Hugo](https://gohugo.io). I only took [Calin Tataru](https://calintat.github.io) theme and stripped out |
|
|
|
|
|
all the links to varios CDNs. I would prefer my website to have as little dependencies outside my control as possible please. |
|
|
|
|
|
|
|
|
## Installation |
|
|
## Installation |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I recommend the latter. From the root of your Hugo site, type the following: |
|
|
I recommend the latter. From the root of your Hugo site, type the following: |
|
|
|
|
|
|
|
|
``` |
|
|
``` |
|
|
$ git submodule add https://github.com/calintat/minimal.git themes/minimal |
|
|
|
|
|
|
|
|
$ git submodule add GIT_URL_HERE themes/minimal-no-third-party |
|
|
$ git submodule init |
|
|
$ git submodule init |
|
|
$ git submodule update |
|
|
$ git submodule update |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
Now you can get updates to Minimal in the future by updating the submodule: |
|
|
Now you can get updates to Minimal in the future by updating the submodule: |
|
|
|
|
|
|
|
|
``` |
|
|
``` |
|
|
$ git submodule update --remote themes/minimal |
|
|
|
|
|
|
|
|
$ git submodule update --remote themes/minimal-no-third-party |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
## Configuration |
|
|
## Configuration |
|
|
|
|
|
|
|
|
backgroundColor = "white" |
|
|
backgroundColor = "white" |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
### Fonts |
|
|
|
|
|
|
|
|
|
|
|
The theme uses [Google Fonts](https://fonts.google.com) to load its font. To change the font: |
|
|
|
|
|
|
|
|
|
|
|
```toml |
|
|
|
|
|
[params] |
|
|
|
|
|
font = "Raleway" # should match the name on Google Fonts! |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
### Syntax highlighting |
|
|
### Syntax highlighting |
|
|
|
|
|
|
|
|
The theme supports syntax highlighting thanks to [highlight.js](https://highlightjs.org). |
|
|
|
|
|
|
|
|
|
|
|
It's disabled by default, so you have to enable it by setting `highlight` to `true` in your config. |
|
|
|
|
|
|
|
|
|
|
|
You can change the style used for the highlighting by using the `highlightStyle` field. |
|
|
|
|
|
|
|
|
|
|
|
Only the "common" languages will be loaded by default. To load more, use `highlightLanguages`. |
|
|
|
|
|
|
|
|
|
|
|
A list of all the available styles and languages can be found [here](https://highlightjs.org/static/demo/). |
|
|
|
|
|
|
|
|
|
|
|
Please note the style and languages should be written in hyphen-separated lowercase, for example: |
|
|
|
|
|
|
|
|
|
|
|
```toml |
|
|
|
|
|
[params] |
|
|
|
|
|
highlight = true |
|
|
|
|
|
highlightStyle = "solarized-dark" |
|
|
|
|
|
highlightLanguages = ["go", "haskell", "kotlin", "scala", "swift"] |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
The theme does not supportssyntax highlighting. |