metbril / hugo-grotius

Personal IndieWeb enabled theme for my personal website.

Home Page:https://hugo-grotius.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hugo Grotius

A personal theme for Hugo.

Table of Contents

Features

  • Internationalization en localization
  • Social icons

Installation

TODO

Configuration

Site configuration

TODO, see exampleSite config.toml

Front matter

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.

Localization

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

Social icons

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:info@gohugo.io
    icon: fa-envelope
    style: fas

Localization / Internationalization

The theme has official i18n support.

To customize dates, the theme uses the dateFormat function, which outputs localized month names.

Hugo Grotius???

Hugo Grotius (Hugo de Groot) is a Dutch historical figure.

Credits

About

Personal IndieWeb enabled theme for my personal website.

https://hugo-grotius.netlify.app/

License:GNU General Public License v3.0


Languages

Language:CSS 74.3%Language:SCSS 13.7%Language:HTML 12.0%