From 743d1e3d4c421385111dfd63482cd92a5fff02c1 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Mon, 1 Dec 2025 22:27:26 -0800 Subject: move micro to its own site (better compatability with indieweb feats) --- .../themes/MinIndie/layouts/_default/list.html | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 indieweb-micro/themes/MinIndie/layouts/_default/list.html (limited to 'indieweb-micro/themes/MinIndie/layouts/_default/list.html') diff --git a/indieweb-micro/themes/MinIndie/layouts/_default/list.html b/indieweb-micro/themes/MinIndie/layouts/_default/list.html new file mode 100644 index 0000000..f3639a1 --- /dev/null +++ b/indieweb-micro/themes/MinIndie/layouts/_default/list.html @@ -0,0 +1,57 @@ +{{ define "main" }} +
+ {{ $pageKind := .Kind }} + {{ if or .Title .Content }} +
+ {{ if .Title }} +

+ {{ .Title }} + {{ partial "single-title-extra.html" . }} +

+ {{ end }} + {{ with .Content }}
{{ . }}
{{ end }} +
+ {{ end }} + +
+ {{ $yearCptr := "" }} + {{ $monthCptr := "" }} + {{ range .Paginator.Pages }} + {{ $postYear := .Date.Year }} + {{ $postMonth := .Date.Month }} + + {{ if or (ne $monthCptr $postMonth) (and (eq $yearCptr "") (eq $monthCptr "")) }} + {{ $yearCptr = $postYear }} + {{ $monthCptr = $postMonth }} + {{ if and (ne $yearCptr "") (ne $monthCptr "") }} + +
+ {{ end }} +
+

{{ $monthCptr }} {{ $yearCptr }}

+
    + {{ end }} + +
  • + +
    + : + {{ if eq $pageKind "term" }}[{{ .Type }}] {{ end }} + + {{.Title }} + +
    +
  • + + {{ $yearCptr = $postYear }} + {{ $monthCptr = $postMonth }} + {{ end }} +
+
+ + + {{ partial "pagination.html" . }} +
+{{ end }} -- cgit v1.2.3