Files
website/layouts/post/single.html
T
yann64andClaude Opus 5.5 7d3b1bec89 Look: Terminal theme (panr/hugo-theme-terminal v4.2.6), adapted to the museum
Theme vendored unmodified in themes/terminal; base, head, header, footer and post templates
rewritten in its markup; museum components restyled in assets/css/museum.css. Embedded forum
threads follow the same colours.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YDRjtmAiNpo5mK5N3d7QwZ
2026-10-13 19:03:12 +02:00

24 lines
1.3 KiB
HTML

{{ define "main" }}
<article class="post">
<p class="crumbs" data-pagefind-ignore><a href="{{ .Parent.RelPermalink }}">{{ .Parent.Title }}</a></p>
<h1 class="post-title">{{ .Title }}</h1>
<div class="post-meta">
{{- if not .Date.IsZero }}<time class="post-date" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time>{{ end -}}
{{- with .GetTerms "author" }}<span class="post-author">{{ partial "terms.html" (dict "page" $ "taxonomy" "author") }}</span>{{ end -}}
</div>
{{ with partial "banner.html" (dict "page" . "width" 1000) }}<img class="post-cover" src="{{ . }}" alt="">{{ end }}
<div class="post-content content">{{ .Content }}</div>
{{/* comments: the post's forum discussion, created by `make forum-sync` (data/forum_pages.json) */}}
{{ with and site.Params.forum.url .File (index (hugo.Data.forum_pages | default dict) .File.Path) }}
<section class="comments-section" id="comments" data-pagefind-ignore>
<h2>Comments</h2>
{{ partial "forum-thread.html" (dict "id" . "title" $.Title "note" "Log in to the forum to comment.") }}
</section>
{{ end }}
<nav class="prev-next" data-pagefind-ignore>
{{ with .PrevInSection }}<a href="{{ .RelPermalink }}">← {{ .Title }}</a>{{ end }}
{{ with .NextInSection }}<a href="{{ .RelPermalink }}">{{ .Title }} →</a>{{ end }}
</nav>
</article>
{{ end }}