diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-08-24 17:05:27 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-08-24 17:05:27 +0200 |
commit | 9f097eb30e867d1c26f9847d578e9cb46366a7a3 (patch) | |
tree | 156b8086249259766055b218a8e0fecfe14f852d /hugo | |
parent | 8f2b510b7974bd95de7c08372931da4b0317b97c (diff) |
added static website generation with hugo and hugo-xmin theme
Diffstat (limited to 'hugo')
-rw-r--r-- | hugo/README.md | 15 | ||||
-rw-r--r-- | hugo/archetypes/default.md | 6 | ||||
-rw-r--r-- | hugo/config.toml | 4 | ||||
l--------- | hugo/content/_index.md | 1 | ||||
m--------- | hugo/themes/hugo-xmin | 0 |
5 files changed, 26 insertions, 0 deletions
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 +Subproject 4100270f6fe5b530cf8b7989cf34a20b4e70c1d |