diff options
| author | JustZvan <justzvan@justzvan.xyz> | 2026-03-24 20:14:42 +0100 |
|---|---|---|
| committer | JustZvan <justzvan@justzvan.xyz> | 2026-03-24 20:14:42 +0100 |
| commit | a60a600522b9c638cf06fc484d80209dfb7d5c20 (patch) | |
| tree | 9801ae967ac65724333abf15a35d445a05167095 /themes/JustZvan/layouts/section.html | |
feat: initial commit
Diffstat (limited to 'themes/JustZvan/layouts/section.html')
| -rw-r--r-- | themes/JustZvan/layouts/section.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/themes/JustZvan/layouts/section.html b/themes/JustZvan/layouts/section.html new file mode 100644 index 0000000..1712416 --- /dev/null +++ b/themes/JustZvan/layouts/section.html @@ -0,0 +1,26 @@ +{{ define "main" }} + <div class="list-page"> + <h1 class="page-title">{{ .Title }}</h1> + {{ with .Content }} + <div class="page-content">{{ . }}</div> + {{ end }} + + <div class="post-list"> + {{ range .Pages }} + <article class="post-list-item"> + {{ if .Date }} + <div class="post-list-meta"> + {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} + {{ $dateHuman := .Date | time.Format "2006-01-02" }} + <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time> + </div> + {{ end }} + <h2 class="post-list-title"><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2> + {{ with .Params.subtitle }} + <div class="post-list-summary">{{ . }}</div> + {{ end }} + </article> + {{ end }} + </div> + </div> +{{ end }} |