{{ define "title" }}{{ .Title }} – {{ .Params.tab | title }} · {{ site.Title }}{{ end }} {{ define "main" }} {{ $m := site.GetPage .Params.machine }} {{ $tab := .Params.tab }} {{ $p := $m.Params }}
{{ 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 }}

Software in the museum

{{ partial "link-list.html" . }}{{ end }} {{ with $p.screenshots }}

Screenshots

{{ partial "gallery.html" . }}{{ end }} {{ else if eq $tab "links" }} {{ with $p.related }}

Related systems

{{ partial "link-list.html" . }}{{ end }} {{ with $p.links }}

Web links

{{ partial "entries.html" . }}{{ end }} {{ else if in (slice "emulators" "videos") $tab }} {{ partial "entries.html" (index $p $tab) }} {{ else if eq $tab "docs" }} {{ end }} {{ partial "comments.html" $m }}
{{ end }}