garden: sessions redundancy + theme toggle + no toggle reveal

- Sessions list: no tag header, stripped 'Vigo Session Log:' prefix
- Session single: flat sections instead of fragment toggle (details/summary)
- Theme toggle: explicit font-family + color ensures emoji icon renders
- New: layouts/sessions/list.html, sessions/single.html
- Changed: content/sessions/*.md (no fragment shortcodes), garden.css
This commit is contained in:
B.A. Baracus 2026-05-26 16:52:30 +02:00
parent f89cd0730e
commit 00fa25f436
Signed by: ba
GPG key ID: D52E9C8491872206
19 changed files with 372 additions and 61 deletions

View file

@ -0,0 +1,21 @@
{{ define "main" }}
<section>
<header>
<h1>{{ .Title }}</h1>
{{- with .Description }}<p data-text="dim">{{ . }}</p>{{- end }}
</header>
<div data-layout="card-grid">
{{- range .Pages }}
<article data-card>
<h4><a href="{{ .RelPermalink }}">{{ .Title | replaceRE "^Vigo Session Log: " "" }}</a></h4>
{{- if not .Date.IsZero }}
<footer>
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
</footer>
{{- end }}
</article>
{{- end }}
</div>
</section>
{{ end }}

View file

@ -0,0 +1,33 @@
{{ define "main" }}
<article>
<header>
<hgroup>
<h1>{{ .Title | replaceRE "^Vigo Session Log: " "" }}</h1>
{{- if not .Date.IsZero }}
<p data-text="dim"><time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</time></p>
{{- end }}
</hgroup>
{{- with .GetTerms "tags" }}
<nav data-role="tag-cloud" aria-label="Tags">
{{- range . }}
<a href="{{ .Permalink }}" data-tag="{{ .Name }}">{{ .Name }}</a>
{{- end }}
</nav>
{{- end }}
</header>
{{ .Content }}
{{- if or .PrevInSection .NextInSection }}
<footer>
{{- with .PrevInSection }}
<a href="{{ .RelPermalink }}" rel="prev" data-wikilink>← {{ .Title | replaceRE "^Vigo Session Log: " "" }}</a>
{{- end }}
{{- with .NextInSection }}
<a href="{{ .RelPermalink }}" rel="next" data-wikilink>{{ .Title | replaceRE "^Vigo Session Log: " "" }} →</a>
{{- end }}
</footer>
{{- end }}
</article>
{{ end }}