From 9f097eb30e867d1c26f9847d578e9cb46366a7a3 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Tue, 24 Aug 2021 17:05:27 +0200 Subject: added static website generation with hugo and hugo-xmin theme --- hugo/README.md | 15 +++++++++++++++ hugo/archetypes/default.md | 6 ++++++ hugo/config.toml | 4 ++++ hugo/content/_index.md | 1 + hugo/themes/hugo-xmin | 1 + 5 files changed, 27 insertions(+) create mode 100644 hugo/README.md create mode 100644 hugo/archetypes/default.md create mode 100644 hugo/config.toml create mode 120000 hugo/content/_index.md create mode 160000 hugo/themes/hugo-xmin (limited to 'hugo') diff --git a/hugo/README.md b/hugo/README.md new file mode 100644 index 0000000..70c53a0 --- /dev/null +++ b/hugo/README.md @@ -0,0 +1,15 @@ +# Static website +www.sigsum.org can be generated as a static website using [hugo](https://gohugo.io) +and the [hugo-xmin](https://github.com/yihui/hugo-xmin) theme. + +## One-time setup +1. Install `hugo` +1. Initialize theme: `git submodule update --init --recursive` + +## Test locally +1. Run `hugo serve` +2. Browse http://localhost:1313 + +## Generate +1. Run `hugo` +2. Static website is now located in `public` diff --git a/hugo/archetypes/default.md b/hugo/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/hugo/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/hugo/config.toml b/hugo/config.toml new file mode 100644 index 0000000..95b90a7 --- /dev/null +++ b/hugo/config.toml @@ -0,0 +1,4 @@ +baseURL = "https://www.sigsum.org/" +languageCode = "en-us" +title = "Sigsum" +theme = "hugo-xmin" diff --git a/hugo/content/_index.md b/hugo/content/_index.md new file mode 120000 index 0000000..fe84005 --- /dev/null +++ b/hugo/content/_index.md @@ -0,0 +1 @@ +../../README.md \ No newline at end of file diff --git a/hugo/themes/hugo-xmin b/hugo/themes/hugo-xmin new file mode 160000 index 0000000..4100270 --- /dev/null +++ b/hugo/themes/hugo-xmin @@ -0,0 +1 @@ +Subproject commit 4100270f6fe5b530cf8b7989cf34a20b4e70c1d9 -- cgit v1.2.3