A personal theme for Hugo.
Table of Contents
- Internationalization en localization
- Social icons
TODO
TODO, see exampleSite config.toml
The theme supports some specific keys in content front matter.
Key | Description |
---|---|
hidden: |
true or false . When true , hides the post from any range/list. This is useful to create pages that should be available by their permalink, but are not actively shown. If omitted, it will default to false . |
If you like to localize your post types, for example use 'bladwijzer' (Dutch) instead of 'bookmark', just create the section with that name, and add an _index.md
file with some specific frontmatter.
The frontmatter in the index file should force the type and cascade it to all child pages:
Example file /content/bladwijzer/_index.md
:
type: bookmark
cascade:
type: bookmark
The template has support for a user-defined set of social icons. The icons are configured in the site configuration. To add a spacer between 2 icons, just create an item without a url. Just an id will do. You can use any available ForkAwesome icon. See the configuration file in the example site.
Example file data/social.yaml
:
social:
- id: twitter
name: Twitter
url: https://twitter.com/gohugoio
icon: fa-twitter
style: fab
- id: github
name: GitHub
url: https://github.com/gohugoio
icon: fa-github
style: fab
- id: spacer1
- id: www
name: "WWW"
url: https://gohugo.io
icon: fa-globe
style: fas
- id: email
name: "E-mail"
url: mailto:[email protected]
icon: fa-envelope
style: fas
The theme has official i18n support.
To customize dates, the theme uses the dateFormat
function, which outputs localized month names.
Hugo Grotius (Hugo de Groot) is a Dutch historical figure.
- Normalize version 8.0.1
- SimpleCSS version 2.0.0
- ForkAwesome version 1.2.0
- Wikimedia picture of Hugo Grotius