aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitmodules3
-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
6 files changed, 29 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..e4e00b3
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "hugo/themes/hugo-xmin"]
+ path = hugo/themes/hugo-xmin
+ url = https://github.com/yihui/hugo-xmin
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