summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorclaw0ry <me@claw0ry.net>2025-01-24 08:48:46 +0100
committerclaw0ry <me@claw0ry.net>2025-01-24 08:48:46 +0100
commit0c934b248a7dc45e2d09a55818b85c72943cc986 (patch)
treefb2048b93be74b0307d5431ae57f28d019f450c7 /themes
parenttheme: new favicon (diff)
collections: new page
Diffstat (limited to 'themes')
-rw-r--r--themes/plaintext/layouts/_default/list.html1
-rw-r--r--themes/plaintext/layouts/collections/single.html24
-rw-r--r--themes/plaintext/layouts/partials/header.html1
3 files changed, 26 insertions, 0 deletions
diff --git a/themes/plaintext/layouts/_default/list.html b/themes/plaintext/layouts/_default/list.html
index 50fc92d..c006d7e 100644
--- a/themes/plaintext/layouts/_default/list.html
+++ b/themes/plaintext/layouts/_default/list.html
@@ -1,6 +1,7 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
+
{{ range .Pages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }}
diff --git a/themes/plaintext/layouts/collections/single.html b/themes/plaintext/layouts/collections/single.html
new file mode 100644
index 0000000..1833f68
--- /dev/null
+++ b/themes/plaintext/layouts/collections/single.html
@@ -0,0 +1,24 @@
+{{ define "main" }}
+
+<article class="article">
+ <h1 class="article--heading">* {{ .Title }}</h1>
+
+ {{ if .Params.toc }}
+ <div class="article--toc">
+ <h2>Table of Contents</h2>
+ {{ .TableOfContents }}
+ </div>
+
+ <hr />
+ {{ end }}
+
+ <div class="article--body">{{ .Content }}</div>
+</article>
+
+<hr />
+
+{{ with .GitInfo }}
+<p class="last-modified"><i>This page was last modified {{ .CommitDate.Format "15:04:05 02-01-2006"}}</i></p>
+{{ end }}
+
+{{ end }}
diff --git a/themes/plaintext/layouts/partials/header.html b/themes/plaintext/layouts/partials/header.html
index b96bd36..e8f397e 100644
--- a/themes/plaintext/layouts/partials/header.html
+++ b/themes/plaintext/layouts/partials/header.html
@@ -2,6 +2,7 @@
<p>
[<a href="/">blog</a>]
[<a href="http://github.com/moiaune">projects</a>]
+ [<a href="{{.Site.BaseURL}}collections">collections</a>]
[<a href="http://ipv4.claw0ry.net">ipv4</a>]
[<a href="http://ipv6.claw0ry.net">ipv6</a>]
[<a href="{{.Site.BaseURL}}index.xml">rss</a>]