Files
kestrelsnest-blog/layouts/weeknotes/single.html
Eric Wagoner 1a5d864d9b Add weeknote for January 4-10, 2026 and fix list template excerpts
- New weeknote covering the week's shipped work, reading, gaming, cooking, and observations
- Fixed list templates to show description excerpts consistently across main index and weeknotes page
- Updated layouts/_default/list.html to check .Params.description before .Description
- Updated layouts/weeknotes/single.html to display full excerpts with reading time

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-10 14:42:55 -05:00

41 lines
1.4 KiB
HTML

{{ define "main" }}
<article class="post">
<header class="post-header">
<h1 class="post-title">{{ .Title }}</h1>
</header>
<div class="post-content">
{{ .Content }}
</div>
<h2>All Weeknotes</h2>
<ul class="posts-list">
{{ range (where .Site.RegularPages "Params.tags" "intersect" (slice "weeknotes")).ByDate.Reverse }}
<li class="posts-list-item">
<a class="posts-list-item-title" href="{{ .Permalink }}">{{ .Title }}</a>
<span class="posts-list-item-description">
<div>
{{ if .Params.preview }}
<br />{{ .Params.preview }}<br />(more inside)<br /><br />
{{ else if .Params.description }}
<br />{{ .Params.description }}<br />(more inside)<br /><br />
{{ else if .Description }}
<br />{{ .Description }}<br />(more inside)<br /><br />
{{ else }}
{{ .Summary }}
{{ end }}
</div>
</span>
<span class="posts-list-item-description">
{{ partial "icon.html" (dict "ctx" $ "name" "calendar") }}
{{ .PublishDate.Format "Jan 2, 2006" }}
<span class="posts-list-item-separator">-</span>
{{ partial "icon.html" (dict "ctx" $ "name" "clock") }}
{{ .ReadingTime }} min read
</span>
</li>
{{ end }}
</ul>
</article>
{{ end }}