summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-05-29 12:02:00 +0200
committerxengineering <me@xengineering.eu>2022-05-29 12:02:00 +0200
commitb51f3f435a0f9953be2240b8f342ff498967f8da (patch)
tree6a85716e8c9bfc2b6dba365aecfea74fdffc1a61
parente27f0e429d004c0f3b1ac220ceaf90e8b1aba228 (diff)
downloadwebsite-b51f3f435a0f9953be2240b8f342ff498967f8da.tar
website-b51f3f435a0f9953be2240b8f342ff498967f8da.tar.zst
website-b51f3f435a0f9953be2240b8f342ff498967f8da.zip
Move software list to partials
-rw-r--r--themes/bare/layouts/index.html6
-rw-r--r--themes/bare/layouts/partials/software_list.html5
2 files changed, 6 insertions, 5 deletions
diff --git a/themes/bare/layouts/index.html b/themes/bare/layouts/index.html
index 672a031..e454f71 100644
--- a/themes/bare/layouts/index.html
+++ b/themes/bare/layouts/index.html
@@ -31,11 +31,7 @@
{{.Content}}
- <ul>
- {{ range $.Site.Data.repositories }}
- <li>{{ .name }} - {{ .description }} [ <a href="https://cgit.xengineering.eu/{{ .name }}">Git</a> | <a href="https://cgit.xengineering.eu/{{ .name }}/atom">Atom</a> ]</li>
- {{ end }}
- </ul>
+ {{ partial "software_list.html" . }}
<br>
<hr>
diff --git a/themes/bare/layouts/partials/software_list.html b/themes/bare/layouts/partials/software_list.html
new file mode 100644
index 0000000..76e92c7
--- /dev/null
+++ b/themes/bare/layouts/partials/software_list.html
@@ -0,0 +1,5 @@
+<ul>
+{{ range $.Site.Data.repositories }}
+ <li>{{ .name }} - {{ .description }} [ <a href="https://cgit.xengineering.eu/{{ .name }}">Git</a> | <a href="https://cgit.xengineering.eu/{{ .name }}/atom">Atom</a> ]</li>
+{{ end }}
+</ul>