summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-05-31 14:25:39 +0200
committerxengineering <me@xengineering.eu>2022-05-31 14:25:39 +0200
commit1c46049283351c7a6e5e1ce386d0f0ef5951d6a5 (patch)
tree8b0ef78c3217a3f0c9a0fd8119148045515524d2
parent4a292ac06320580e07f0a0689f6b2a77bc2e3495 (diff)
downloadwebsite-1c46049283351c7a6e5e1ce386d0f0ef5951d6a5.tar
website-1c46049283351c7a6e5e1ce386d0f0ef5951d6a5.tar.zst
website-1c46049283351c7a6e5e1ce386d0f0ef5951d6a5.zip
Implement repository iteration
-rw-r--r--content/git/webiot.md6
-rw-r--r--content/git/website.md4
-rw-r--r--themes/bare/layouts/index.html7
3 files changed, 9 insertions, 8 deletions
diff --git a/content/git/webiot.md b/content/git/webiot.md
index f74bf47..dcfafed 100644
--- a/content/git/webiot.md
+++ b/content/git/webiot.md
@@ -2,9 +2,3 @@
"name":"webiot",
"description":"Small webserver for my personal Internet of Things (IoT)"
}
-
-Some stuff
-
-- uno
-- dos
-- three
diff --git a/content/git/website.md b/content/git/website.md
new file mode 100644
index 0000000..f5f39e5
--- /dev/null
+++ b/content/git/website.md
@@ -0,0 +1,4 @@
+{
+ "name":"website",
+ "description":"xengineering's website as a Git repository"
+}
diff --git a/themes/bare/layouts/index.html b/themes/bare/layouts/index.html
index f3decef..380e9d7 100644
--- a/themes/bare/layouts/index.html
+++ b/themes/bare/layouts/index.html
@@ -31,9 +31,12 @@
{{.Content}}
+ <h2>Repositories</h2>
+
<ul>
- {{ $page := .GetPage "git/webiot.md" }}
- <li><a href="{{ $page.Permalink }}">{{ $page.Params.name }}</a> - {{$page.Description}}</li>
+ {{range.Site.RegularPages}}
+ <li><a href="{{.Permalink}}">{{.Params.name}}</a> - {{.Description}}</li>
+ {{end}}
</ul>
<br>