- 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>
41 lines
1.4 KiB
HTML
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 }}
|