af2b8c5060
- Single page: 'von {Author} · {Date}' byline directly under H1 in
mono, editorial-style. Falls back to site.Params.author.name.
- Journal listing: author appended to existing meta row.
- Bottom .time line cleaned: only renders if there's reading time
or a meaningful lastmod, to avoid an empty meta strip.
Per-page override via 'author' frontmatter field; until set,
everything is credited to the site default author.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
44 lines
1.5 KiB
HTML
44 lines
1.5 KiB
HTML
{{ define "main" }}
|
|
{{ .Content }}
|
|
|
|
{{ $library := where site.RegularPages "Section" "library" }}
|
|
{{ $journal := first 20 $library.ByDate.Reverse }}
|
|
|
|
<section class="journal" aria-label="Journal — neueste Beiträge">
|
|
<header class="journal-header">
|
|
<h2>Journal</h2>
|
|
<p class="text-muted">Was zuletzt geschrieben wurde.</p>
|
|
</header>
|
|
|
|
<ol class="journal-list">
|
|
{{ range $journal }}
|
|
<li class="journal-entry">
|
|
{{ $author := .Params.author | default site.Params.author.name }}
|
|
<a class="journal-entry-link" href="{{ .RelPermalink }}">
|
|
<div class="journal-meta">
|
|
{{ with .Parent }}
|
|
<span class="journal-section">{{ .Title }}</span>
|
|
{{ end }}
|
|
<time class="journal-date" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time>
|
|
{{ with $author }}<span class="journal-author">{{ . }}</span>{{ end }}
|
|
</div>
|
|
<h3 class="journal-title">{{ .LinkTitle }}</h3>
|
|
{{ with .Params.summary }}
|
|
<p class="journal-summary">{{ . }}</p>
|
|
{{ end }}
|
|
{{ with .Params.tags }}
|
|
<ul class="journal-tags">
|
|
{{ range . }}<li>#{{ . }}</li>{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
</a>
|
|
</li>
|
|
{{ end }}
|
|
</ol>
|
|
|
|
{{ if gt (len $library) 20 }}
|
|
<p class="more"><a href="/library/">→ Alle Beiträge in der Library</a></p>
|
|
{{ end }}
|
|
</section>
|
|
{{ end }}
|