From 4719cc03837490ed4bf1b9725d75a686e56e5a6a Mon Sep 17 00:00:00 2001 From: claw0ry Date: Wed, 11 Dec 2024 13:56:52 +0100 Subject: fresh start --- themes/plaintext/layouts/_default/baseof.html | 36 +++++++++++++++++++ themes/plaintext/layouts/_default/list.html | 8 +++++ themes/plaintext/layouts/_default/single.html | 10 ++++++ themes/plaintext/layouts/index.html | 45 ++++++++++++++++++++++++ themes/plaintext/layouts/partials/footer.html | 2 ++ themes/plaintext/layouts/partials/head.html | 9 +++++ themes/plaintext/layouts/partials/header.html | 9 +++++ themes/plaintext/layouts/posts/single.html | 33 +++++++++++++++++ themes/plaintext/layouts/shortcodes/rawhtml.html | 2 ++ 9 files changed, 154 insertions(+) create mode 100644 themes/plaintext/layouts/_default/baseof.html create mode 100644 themes/plaintext/layouts/_default/list.html create mode 100644 themes/plaintext/layouts/_default/single.html create mode 100644 themes/plaintext/layouts/index.html create mode 100644 themes/plaintext/layouts/partials/footer.html create mode 100644 themes/plaintext/layouts/partials/head.html create mode 100644 themes/plaintext/layouts/partials/header.html create mode 100644 themes/plaintext/layouts/posts/single.html create mode 100644 themes/plaintext/layouts/shortcodes/rawhtml.html (limited to 'themes/plaintext/layouts') diff --git a/themes/plaintext/layouts/_default/baseof.html b/themes/plaintext/layouts/_default/baseof.html new file mode 100644 index 0000000..2f38a78 --- /dev/null +++ b/themes/plaintext/layouts/_default/baseof.html @@ -0,0 +1,36 @@ + + +{{ "" | safeHTML }} + + + + + {{ partial "head.html" . }} + + + +
+ {{ partial "header.html" . }} +
+ +
+
+ {{ block "main" . }}{{ end }} + +
+ +
+ {{ partial "footer.html" . }} +
+
+ + + diff --git a/themes/plaintext/layouts/_default/list.html b/themes/plaintext/layouts/_default/list.html new file mode 100644 index 0000000..50fc92d --- /dev/null +++ b/themes/plaintext/layouts/_default/list.html @@ -0,0 +1,8 @@ +{{ define "main" }} +

{{ .Title }}

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

{{ .LinkTitle }}

+ {{ .Summary }} + {{ end }} +{{ end }} diff --git a/themes/plaintext/layouts/_default/single.html b/themes/plaintext/layouts/_default/single.html new file mode 100644 index 0000000..7e286c8 --- /dev/null +++ b/themes/plaintext/layouts/_default/single.html @@ -0,0 +1,10 @@ +{{ define "main" }} +

{{ .Title }}

+ + {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} + {{ $dateHuman := .Date | time.Format ":date_long" }} + + + {{ .Content }} + {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} +{{ end }} diff --git a/themes/plaintext/layouts/index.html b/themes/plaintext/layouts/index.html new file mode 100644 index 0000000..da61394 --- /dev/null +++ b/themes/plaintext/layouts/index.html @@ -0,0 +1,45 @@ +{{ define "main" }} +

claw0ry.net

+ +
+

Hi, my name is Mads! *waves*

+ +

I'm a developer and Linux enthusiast from Norway. I mainly use this site as a personal reference, cause my brain + too smol. Maybe you'll find something interesting too.

+ + + +

+ Bluesky: claw0ry.net +

+
+ +
+ +
+ {{ $pages := where site.RegularPages "Type" "posts" }} + {{ $paginator := .Paginate $pages.ByDate.Reverse 5 }} + + {{ range $paginator.Pages }} + + +
+ + {{ end }} + + {{ template "_internal/pagination.html" (dict "page" . "format" "terse") }} + +
+
+{{ end }} diff --git a/themes/plaintext/layouts/partials/footer.html b/themes/plaintext/layouts/partials/footer.html new file mode 100644 index 0000000..ea1ae0b --- /dev/null +++ b/themes/plaintext/layouts/partials/footer.html @@ -0,0 +1,2 @@ +

Copyright © {{ now.Year }} - claw0ry.net / <webmaster@claw0ry.net>

diff --git a/themes/plaintext/layouts/partials/head.html b/themes/plaintext/layouts/partials/head.html new file mode 100644 index 0000000..1ba4902 --- /dev/null +++ b/themes/plaintext/layouts/partials/head.html @@ -0,0 +1,9 @@ + + +{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }} + + + + + + diff --git a/themes/plaintext/layouts/partials/header.html b/themes/plaintext/layouts/partials/header.html new file mode 100644 index 0000000..b96bd36 --- /dev/null +++ b/themes/plaintext/layouts/partials/header.html @@ -0,0 +1,9 @@ + diff --git a/themes/plaintext/layouts/posts/single.html b/themes/plaintext/layouts/posts/single.html new file mode 100644 index 0000000..c4b5e80 --- /dev/null +++ b/themes/plaintext/layouts/posts/single.html @@ -0,0 +1,33 @@ +{{ 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/shortcodes/rawhtml.html b/themes/plaintext/layouts/shortcodes/rawhtml.html new file mode 100644 index 0000000..b90bea2 --- /dev/null +++ b/themes/plaintext/layouts/shortcodes/rawhtml.html @@ -0,0 +1,2 @@ + +{{.Inner}} -- cgit v1.2.3