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
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
{{ define "main" }}
|
||||
<article class="post">
|
||||
<p class="crumbs" data-pagefind-ignore><a href="{{ .Parent.RelPermalink }}">{{ .Parent.Title }}</a></p>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p class="meta">{{ if not .Date.IsZero }}<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2 January 2006" }}</time>{{ end }}{{ with .GetTerms "author" }}{{ if not $.Date.IsZero }} · {{ end }}{{ partial "terms.html" (dict "page" $ "taxonomy" "author") }}{{ end }}</p>
|
||||
{{ with partial "banner.html" (dict "page" . "width" 1000) }}<img class="post-banner" src="{{ . }}" alt="">{{ end }}
|
||||
<div class="content">{{ .Content }}</div>
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user