aboutsummaryrefslogtreecommitdiff
path: root/hugo
diff options
context:
space:
mode:
Diffstat (limited to 'hugo')
-rw-r--r--hugo/README.md15
-rw-r--r--hugo/archetypes/default.md6
-rw-r--r--hugo/config.toml4
l---------hugo/content/_index.md1
m---------hugo/themes/hugo-xmin0
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