Files
kestrelsnest-blog/layouts/_default/list.html
Eric Wagoner 3b30bd0323 Add two new blog posts and support preview frontmatter
- Add "I Thought I Had 15 Minutes" post about standup automation (draft)
- Add "Why I Self-Host My Social Media" post about YunoHost setup
- Update list.html to use preview param for homepage listings, falling back to description

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 20:56:21 -05:00

40 lines
1.4 KiB
HTML

{{ define "main" }}
<article>
<h1>{{ .Title }}</h1>
<ul class="posts-list">
{{ range where .Paginator.Pages "Type" "!=" "page" }}
<li class="posts-list-item">
<a class="posts-list-item-title" href="{{ .Permalink }}">{{ .Title }}</a>
{{ if .Params.series }}
{{ $series := index .Params.series 0 }}
{{ $order := .Params.series_order }}
<span class="series-indicator">
{{ partial "icon.html" (dict "ctx" $ "name" "book") }}
Part {{ $order }} of {{ $series }}
</span>
{{ end }}
<span class="posts-list-item-description">
<div>
{{ if .Params.preview }}
<br />{{ .Params.preview }}<br />(more inside)<br /><br />
{{ else if .Description }}
<br />{{ .Description }}<br />(more inside)<br /><br />
{{ else }}
{{ .Content }}
{{ 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>
{{ partial "pagination.html" $ }}
</article>
{{ end }}