Files
website/layouts/baseof.html
T

46 lines
2.3 KiB
HTML

<!doctype html>
<html lang="{{ site.Language.Locale }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ block "title" . }}{{ if not .IsHome }}{{ .Title }} · {{ end }}{{ site.Title }}{{ end }}</title>
<meta name="description" content="{{ with .Params.description }}{{ . }}{{ else }}{{ site.Params.description }}{{ end }}">
{{ with resources.Get "css/main.css" | minify | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{ end }}
</head>
<body>
<header class="site-header">
<a class="brand" href="{{ site.Home.RelPermalink }}">OLD-COMPUTERS<span>.COM</span></a>
<nav>
{{ $current := . }}
{{ range site.Menus.main }}
<a href="{{ .URL }}"{{ if or ($current.IsMenuCurrent .Menu .) ($current.HasMenuCurrent .Menu .) (eq $current.Section .Page.Section) }} class="active"{{ end }}>{{ .Name }}</a>
{{ end }}
{{ with site.Params.forum.url }}<a href="{{ . }}">Forum</a>{{ end }}
</nav>
<form class="search" role="search" action="{{ "search/" | relURL }}" method="get">
<input type="search" name="q" placeholder="Search…" aria-label="Search the site">
</form>
</header>
{{/* search index: content pages only (not lists), filterable by section; see layouts/search.html */}}
{{ $indexed := and .IsPage (ne .Layout "search") }}
{{ $section := "" }}{{ with .FirstSection }}{{ if not .IsHome }}{{ $section = .Title }}{{ end }}{{ end }}
{{ if eq .Section "machine-tabs" }}{{ $section = "Museum" }}{{ end }}
<main{{ if $indexed }} data-pagefind-body{{ with $section }} data-pagefind-filter="Section:{{ . }}"{{ end }}{{ end }}>
{{ block "main" . }}{{ end }}
</main>
<footer class="site-footer">
{{ with .Params.source }}
<p>Recovered from the <a href="{{ .url }}"{{ partial "ext.html" .url }}>Wayback Machine capture of {{ .date }}</a>.</p>
{{ end }}
<p>Content © its original authors at Old-Computers.com. Rebuilt from the Internet Archive</p>
<p><a href="{{ site.Home.RelPermalink }}members/">Members</a> -
<a href="{{ site.Home.RelPermalink }}about/">About</a> -
<a href="{{ site.Home.RelPermalink }}donate/">Donate!</a> -
<a href="{{ site.Home.RelPermalink }}faq/">FAQ</a>
</p>
</footer>
</body>
</html>