A static site generator for templ.
go install github.com/cugu/templum/cmd/templum@latest
Generate a site from the content
folder to the public
folder:
templum --content content --output public --user "https://cugu.github.io/templum/"
Content is written in Markdown.
The content directory structure is:
content
├── config.yaml
├── index.md
├── 1 Something.md
├── 2 Something else.md
│ ├── 1 My Topic .md
│ └── 2 My Other Topic.md
├── 3 Another thing.md
└── logo.svg
The config file contains the site base url and the GitHub url:
github_url: "https://github.com/cugu/templum"
logo: "templum.svg"
title: "templum"
The folder structure is used to create the navigation. Number prefixes are used to order the pages and are removed from the navigation.