summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-01-12 19:49:17 +0100
committerxengineering <me@xengineering.eu>2023-01-12 19:49:17 +0100
commit9990f9af26c243764b3c588491ce66b67e3099f2 (patch)
treea7abe67ecc36c1ce1aa391b21fc1a3c94ad2e91b
parent02fb96c854173e875d3f361706713af6e6c666a5 (diff)
downloadwebsite-9990f9af26c243764b3c588491ce66b67e3099f2.tar
website-9990f9af26c243764b3c588491ce66b67e3099f2.tar.zst
website-9990f9af26c243764b3c588491ce66b67e3099f2.zip
Introduce footer partial
This allows to re-use the footer code.
-rw-r--r--layouts/git/list.html5
-rw-r--r--layouts/git/single.html5
-rw-r--r--layouts/index.html5
-rw-r--r--layouts/partials/footer.html4
4 files changed, 7 insertions, 12 deletions
diff --git a/layouts/git/list.html b/layouts/git/list.html
index 65ed807..39a2563 100644
--- a/layouts/git/list.html
+++ b/layouts/git/list.html
@@ -53,10 +53,7 @@
{{ end -}}
</ul>
- <footer>
- <hr>
- <p>This <a href="{{ "git/website" | absURL }}">website</a> is licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA</a> and developed with <a href="https://simplecss.org/">simple.css</a>.</p>
- </footer>
+ {{ partial "footer.html" . }}
</main>
</body>
diff --git a/layouts/git/single.html b/layouts/git/single.html
index 51ccbad..69c8a80 100644
--- a/layouts/git/single.html
+++ b/layouts/git/single.html
@@ -35,10 +35,7 @@
{{.Content}}
- <footer>
- <hr>
- <p>This <a href="{{ "git/website" | absURL }}">website</a> is licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA</a> and developed with <a href="https://simplecss.org/">simple.css</a>.</p>
- </footer>
+ {{ partial "footer.html" . }}
</main>
</body>
diff --git a/layouts/index.html b/layouts/index.html
index 85086a9..88d5dd9 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -70,10 +70,7 @@
{{ end }}
</ul>
- <footer>
- <hr>
- <p>This <a href="{{ "git/website" | absURL }}">website</a> is licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA</a> and developed with <a href="https://simplecss.org/">simple.css</a>.</p>
- </footer>
+ {{ partial "footer.html" . }}
</main>
</body>
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..e7de22e
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,4 @@
+ <footer>
+ <hr>
+ <p>This <a href="{{ "git/website" | absURL }}">website</a> is licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA</a> and developed with <a href="https://simplecss.org/">simple.css</a>.</p>
+ </footer>