- commit
- 71b3bb6d95ef6f08fb74209f9efaa274e6f618b5
- parent
- 6b0092ccd689ffe2a0eb0959d801e311ed4c89a9
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-08-07 09:32
setup hugo
Diffstat
| A | .gitignore | 4 | ++++ |
| A | hugo.toml | 4 | ++++ |
| A | layouts/_default/baseof.html | 27 | +++++++++++++++++++++++++++ |
| A | layouts/_default/section.html | 3 | +++ |
| A | layouts/_default/single.html | 3 | +++ |
5 files changed, 41 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
@@ -0,0 +1,4 @@ -1 1 /public/ -1 2 /resources/_gen/ -1 3 /assets/jsconfig.json -1 4 /.hugo_build.lock
diff --git a/hugo.toml b/hugo.toml
@@ -0,0 +1,4 @@ -1 1 disableKinds = ['taxonomy', 'term'] -1 2 -1 3 [outputs] -1 4 home = ["HTML"]
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
@@ -0,0 +1,27 @@
-1 1 <!DOCTYPE html>
-1 2 <html lang="en">
-1 3 <head>
-1 4 <meta charset="UTF-8">
-1 5 <meta name="viewport" content="width=device-width, initial-scale=1">
-1 6 <meta http-equiv="Content-Security-Policy" content="default-src 'self'">
-1 7 <title>Data Horror Escape Room</title>
-1 8 <link rel="stylesheet" type="text/css" href="{{ "/style.css" | relURL }}">
-1 9 </head>
-1 10 <body>
-1 11 <header>
-1 12 <a class="brand" href="/" rel="home">Data Horror Escape Room</a>
-1 13 <nav>
-1 14 <a href="/">Home</a>
-1 15 <a href="/about/">About this website</a>
-1 16 </nav>
-1 17 </header>
-1 18 <main>
-1 19 {{ block "main" . }}{{ end }}
-1 20 </main>
-1 21 <footer>
-1 22 © 2025 Tobias Bengfort ·
-1 23 <a href="http://creativecommons.org/licenses/by-sa/4.0/" rel="license">CC-BY-SA-4.0</a> <br>
-1 24 based on <a href="https://sites.google.com/vu.nl/datahorror/">Data Horror Escape Room</a> by Vrije Universiteit Amsterdam, Leiden University and Eindhoven University of Technology
-1 25 </footer>
-1 26 </body>
-1 27 </html>
diff --git a/layouts/_default/section.html b/layouts/_default/section.html
@@ -0,0 +1,3 @@
-1 1 {{ define "main" }}
-1 2 {{ .Content }}
-1 3 {{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
@@ -0,0 +1,3 @@
-1 1 {{ define "main" }}
-1 2 {{ .Content }}
-1 3 {{ end }}