Personal blog theme powered by Hugo
You can install the theme either as a clone or submodule.
I recommend the latter. From the root of your Hugo site, type the following:
$ git submodule add https://github.com/schotter/minimal-with-tags.git themes/minimal-with-tags $ git submodule init $ git submodule update
Now you can get updates to Minimal in the future by updating the submodule:
$ git submodule update --remote themes/minimal-with-tags
After installation, take a look at the
exampleSite folder inside
To get started, copy the
config.toml file inside
exampleSite to the root of your Hugo site:
$ cp themes/minimal-with-tags/exampleSite/config.toml .
Now edit this file and add your own information. Note that some fields can be ommited.
I recommed you use the theme's archetypes so now delete your site's
You can tweak the look of the theme to suit your needs in a number of ways:
The accent colour can be changed by using the
You can also change the background colour by using
Add colored 5px borders at the top and bottom of pages by setting
For best results, I recommend you use a dark accent colour with a light background, for example:
[params] accent = "red" showBorder = true backgroundColor = "white"
The theme uses Google Fonts to load its font. To change the font:
[params] font = "Quicksand" # should match the name on Google Fonts!
The theme supports syntax highlighting thanks to highlight.js.
It's enabled and disconnected from CDNs by default, so check for a newer version of highlight.js.
You can change the style used for the highlighting by using the
Only the "common" languages will be loaded by default. To load more, use
A list of all the available styles and languages can be found here.
Please note the style and languages should be written in hyphen-separated lowercase, for example:
[params] highlight = true highlightStyle = "solarized-dark" highlightLanguages = ["go", "Bash", "json", "http", "apache", "makefile"]