/static-website

Primary LanguageHTMLApache License 2.0Apache-2.0

Static Website

Installation

Windows

  1. Install Chocolatery: Follow the installation guide of Chocolatery Software Managment Tool.

Develop

  1. Run the following command make servefrom the src folder
  2. The log will tell you under which domain the project is available from within the browser

Theme

Syntax

  • Uses yaml for configuration files

Documentation

How to

  1. Create a new project hugo new site <SITE_NAME>
  2. Change config.toml to config.yaml - At the time of writing this couldn't be set via the cli Change the content of your toml via this Toolkit.
    1. Navigate into the folder of your project
    2. Create a theme hugo new theme <THEME_NAME>

Multilingual site

  1. https://regisphilibert.com/blog/2018/08/hugo-multilingual-part-1-managing-content-translation/

Snippets

{{ $pltax := i18n "programminglanguagetax" }} <ul> {{ range $taxonomyname, $taxonomy := .Site.Taxonomies }} <li><a href="{{ "/" | relLangURL}}{{ $taxonomyname | urlize }}">{{ $taxonomyname }}</a> <ul> {{ range $key, $value := $taxonomy }} {{ $key }} <ul> {{ range $value.Pages }} <li><a href="{{ .Permalink}}"> {{ .LinkTitle }} </a> </li> {{ end }} </ul> {{ end }} </ul> </li> {{ end }} </ul>