Files
website/layouts/machine-tabs/single.html
T
yann64andClaude Opus 5.5 fda5359932 Add site search (Pagefind)
Client-side index generated after the Hugo build; search box in the
header, results page with a section filter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YDRjtmAiNpo5mK5N3d7QwZ
2026-10-11 20:31:00 +02:00

49 lines
1.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{{ define "title" }}{{ .Title }} – {{ .Params.tab | title }} · {{ site.Title }}{{ end }}
{{ define "main" }}
{{ $m := site.GetPage .Params.machine }}
{{ $tab := .Params.tab }}
{{ $p := $m.Params }}
<article class="machine" data-pagefind-meta="title:{{ .Title }} – {{ .Params.tab | title }}">
{{ partial "machine-header.html" (dict "machine" $m "tab" $tab) }}
{{ if in (slice "photos" "adverts" "hardware" "connectors") $tab }}
{{ partial "gallery.html" (index $p $tab) }}
{{ else if eq $tab "software" }}
{{ with $p.software }}<h2>Software in the museum</h2>{{ partial "link-list.html" . }}{{ end }}
{{ with $p.screenshots }}<h2>Screenshots</h2>{{ partial "gallery.html" . }}{{ end }}
{{ else if eq $tab "links" }}
{{ with $p.related }}<h2>Related systems</h2>{{ partial "link-list.html" . }}{{ end }}
{{ with $p.links }}<h2>Web links</h2>{{ partial "entries.html" . }}{{ end }}
{{ else if in (slice "emulators" "videos") $tab }}
{{ partial "entries.html" (index $p $tab) }}
{{ else if eq $tab "docs" }}
<div class="gallery docs">
{{ range $p.docs }}
<figure>
{{ with .cover }}<img src="{{ . }}" alt="" loading="lazy">{{ end }}
<figcaption>
{{ if .text }}<div>{{ .text | markdownify }}</div>
{{ else }}<a href="{{ .url }}"><strong>{{ .title }}</strong></a>{{ end }}
</figcaption>
</figure>
{{ end }}
</div>
{{ else if eq $tab "comments" }}
<p class="note">Comments left by visitors of the original site. New comments are closed.</p>
<ol class="comments">
{{ range $p.comments }}
<li>
<p class="meta"><strong>{{ .author }}</strong>{{ with .date }} · {{ . }}{{ end }}</p>
<div>{{ .text | markdownify }}</div>
</li>
{{ end }}
</ol>
{{ end }}
</article>
{{ end }}