Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YDRjtmAiNpo5mK5N3d7QwZ
40 lines
1.5 KiB
HTML
40 lines
1.5 KiB
HTML
{{ 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 }}"{{ partial "ext.html" .url }}><strong>{{ .title }}</strong></a>{{ end }}
|
||
</figcaption>
|
||
</figure>
|
||
{{ end }}
|
||
</div>
|
||
|
||
{{ end }}
|
||
{{ partial "comments.html" $m }}
|
||
</article>
|
||
{{ end }}
|