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
25 lines
759 B
HTML
25 lines
759 B
HTML
{{- $cover := false -}}
|
|
{{- $autoCover := default $.Site.Params.autoCover false }}
|
|
|
|
{{- if index .Params "cover" -}}
|
|
{{- if .Resources.GetMatch .Params.Cover }}
|
|
{{- $cover = (.Resources.GetMatch .Params.Cover).RelPermalink -}}
|
|
{{- else -}}
|
|
{{- $cover = absURL .Params.Cover -}}
|
|
{{- end -}}
|
|
{{- else if $.Site.Params.AutoCover -}}
|
|
{{- if (not .Params.Cover) -}}
|
|
{{- if .Resources.GetMatch "cover.*" -}}
|
|
{{- $cover = (.Resources.GetMatch "cover.*").RelPermalink -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{if $cover -}}
|
|
<!-- Cover image found -->
|
|
<img src="{{ $cover }}"
|
|
class="post-cover"
|
|
alt="{{ .Title | plainify | default " " }}"
|
|
title="{{ .Params.CoverCredit |plainify|default "Cover Image" }}" />
|
|
{{- end }}
|