From 0c934b248a7dc45e2d09a55818b85c72943cc986 Mon Sep 17 00:00:00 2001 From: claw0ry Date: Fri, 24 Jan 2025 08:48:46 +0100 Subject: collections: new page --- themes/plaintext/layouts/_default/list.html | 1 + themes/plaintext/layouts/collections/single.html | 24 ++++++++++++++++++++++++ themes/plaintext/layouts/partials/header.html | 1 + 3 files changed, 26 insertions(+) create mode 100644 themes/plaintext/layouts/collections/single.html (limited to 'themes/plaintext/layouts') 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" }}

{{ .Title }}

{{ .Content }} + {{ range .Pages }}

{{ .LinkTitle }}

{{ .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" }} + +
+

* {{ .Title }}

+ + {{ if .Params.toc }} +
+

Table of Contents

+ {{ .TableOfContents }} +
+ +
+ {{ end }} + +
{{ .Content }}
+
+ +
+ +{{ with .GitInfo }} +

This page was last modified {{ .CommitDate.Format "15:04:05 02-01-2006"}}

+{{ 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 @@

[blog] [projects] + [collections] [ipv4] [ipv6] [rss] -- cgit v1.2.3