You can then either build Hugo on the command line and pass the -t capsule
flag, or you can add theme = "capsule" to your config.toml file.
Note: Any additional documentation will be added to the Capsule
Demo site, not here.
1. Syntax highlighting (via pygments)
For code blocks, pick the highlighter style in config.toml by setting:
pygmentsstyle = "
js = """
Any CSS or JS specified here will add to the site <head> when Hugo renders
6. Enable table of contents
To generate a table of contents for a specific page, add to the toml header:
toc = true
The table of contents will contain all the header items defined in the
markdown. The nesting levels for each match the header weight (h1, h2, etc.).
To (re)build the CSS, you need to have npm and gulp installed. Clone the
capsule repository and once in it run:
You can enable/disable sass components in /build/sass/capsule.sass. To use
customized versions of capsule, you can maintain a fork repo and set the theme
submodule to your fork, or you can simply make a symlink in the themes/ folder
of your site to your local repo.