Base16 Theme for Hugo
Demos
See the demo sites themes.gohugo.io/theme/base16 and htdvisser.github.io/hugo-base16-theme show this theme in action. Both demo sites are built from gohugoio/hugoBasicExample, but the second site is built with some additional config to make it render HTML tags from Markdown files.
[markup.goldmark.renderer]
unsafe= true
Installation
$ mkdir themes
$ cd themes
$ git clone https://github.com/htdvisser/hugo-base16-theme.git base16
See the Hugo documentation for more information.
Extra Features
Syntax highlighting
This theme has support for highlight
shortcode (with Pygments),
see the Hugo documentation for more information.
To use this feature install Pygments (pip install Pygments
) and add pygmentsuseclasses = true
to your config.toml
.
Figure shortcode
Use the figure
shortcode if you want nice rendering of pictures, see the Hugo documentation for more information.
Customization
You probably want to edit the homepage. Get started by copying the supplied homepage to your own site.
$ mkdir -p layouts/partials
$ cp themes/base16/layouts/partials/hero.html layouts/partials/hero.html
After this, you can edit layouts/partials/hero.html
and make it awesome.
License
MIT Licensed, see LICENSE.
Don't forget to thank...
Steve Francia for Hugo.
Chris Kempson for the Base16 Eighties Colorscheme.
Jan T. Sott for the Pygments template.