A CYBERTEC themed "fork" of the geekdoc theme for hugo.
go
hugo
Initialize a new hugo site:
hugo new site <site-name>
cd <site-name>
Initialize the site as a go module:
hugo mod init github.com/cybertec-postgresql/<repository-name>
Add the following to your hugo.toml
to use this theme, including functional code-highlighting:
# hugo.toml
pygmentsCodeFences = true
pygmentsUseClasses = true
[module]
[[module.imports]]
path = 'github.com/cybertec-postgresql/hugo_documentation'
Fetch the module
hugo mod get -u
Build your page
hugo --minify
# You may optionally overwrite the `baseURL`
hugo --minify -b "/docs/"
To retrieve the latest version of this theme, simply run
hugo mod get -u
hugo mod tidy
This repository uses the built release, taken from https://github.com/thegeeklab/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz.
The following customizations have been done to achieve a CYBERTEC look and feel:
- Use the CYBERTEC logo in
./static/brand.svg
- Add the
./config/_default/hugo.toml
config
In case that geekdoc
is updated, we will have to fetch the latest release, merge those files into this repository, and handle possible merge conflicts.