summaryrefslogtreecommitdiffstats
path: root/indieweb-micro/themes/MinIndie/layouts/_default/list.html
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-12-01 22:27:26 -0800
committerPinapelz <yukais@pinapelz.com>2025-12-01 22:28:46 -0800
commit743d1e3d4c421385111dfd63482cd92a5fff02c1 (patch)
tree8b79dfd7b89297b1c8c6864d57943f03e0a183fe /indieweb-micro/themes/MinIndie/layouts/_default/list.html
parent4d75a6ded99babeffc3c264a9f38b510a7c59ce7 (diff)
move micro to its own site (better compatability with indieweb feats)
Diffstat (limited to 'indieweb-micro/themes/MinIndie/layouts/_default/list.html')
-rw-r--r--indieweb-micro/themes/MinIndie/layouts/_default/list.html57
1 files changed, 57 insertions, 0 deletions
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" }}
+<main class="content-list">
+ {{ $pageKind := .Kind }}
+ {{ if or .Title .Content }}
+ <div>
+ {{ if .Title }}
+ <h1>
+ {{ .Title }}
+ {{ partial "single-title-extra.html" . }}
+ </h1>
+ {{ end }}
+ {{ with .Content }}<div class="justify">{{ . }}</div>{{ end }}
+ </div>
+ {{ end }}
+
+ <div class="h-feed">
+ {{ $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 "") }}
+ </ul>
+ </div>
+ {{ end }}
+ <div>
+ <h3>{{ $monthCptr }} {{ $yearCptr }}</h3>
+ <ul>
+ {{ end }}
+
+ <li class="h-entry">
+ <div hidden>
+ {{ partial "bio-hcard.html" . }}
+ </div>
+ <div class="post-title">
+ <time class="date dt-published" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02" }}</time>:
+ {{ if eq $pageKind "term" }}[{{ .Type }}] {{ end }}
+ <a href="{{ .Permalink }}" class="u-url p-name title">
+ {{.Title }}
+ </a>
+ </div>
+ </li>
+
+ {{ $yearCptr = $postYear }}
+ {{ $monthCptr = $postMonth }}
+ {{ end }}
+ </ul>
+ </div>
+ </div>
+
+ {{ partial "pagination.html" . }}
+</main>
+{{ end }}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage