homepage/layouts/_default/baseof.html

59 lines
2.0 KiB
HTML

<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic">
<!-- My stuff -->
<link rel="icon" type="image/png" href="{{"/assets/images/face.png" | relURL}}">
<link rel="stylesheet" media="screen" href="{{"/assets/css/default.css" | relURL}}">
{{range .AlternativeOutputFormats}}
<link rel="{{.Rel}}" type="{{.MediaType.Type}}" title="{{$.Site.Title}}" href="{{.Permalink}}">
{{end}}
{{range .Params.stylesheets}}
<link rel="stylesheet" media="screen" href="{{($.Page.Resources.GetMatch .).RelPermalink}}">
{{end}}
{{range .Params.scripts}}
{{end}}
{{range .Params.scripts}}
{{$url := .}}
{{with $.Page.Resources.GetMatch .}}
{{$url = .RelPermaLink}}
{{end}}
<script src="{{$url}}"
{{- if strings.HasSuffix . ".mjs"}}type="module"{{end -}}
></script>
{{end}}
{{range .Params.headers}}
{{. | safeHTML}}
{{end}}
<title>{{ .Title }}</title>
</head>
<body>
<h1 class="title">{{.Title}}</h1>
<main id="content">
{{ block "main" . }}{{end}}
</main>
<footer>
<nav>
<ul>
<li><a href="{{ "/tartans/" | relURL }}" title="AKA Plaids">Tartans</a></li>
<li><a href="{{ "/poems/" | relURL }}" title="I won't quit my day job">Poems</a></li>
<li><a href="{{ "/papers/" | relURL }}" title="Various writings">Papers</a></li>
<li><a href="{{ "/blog/" | relURL }}" title="Public Journal">Blog</a></li>
<li><a href="{{ "/toys/" | relURL }}" title="Dumb apps">Toys</a></li>
<li class="fill"></li>
<li><a href="https://git.woozle.org/neale/">Git</a></li>
<li><a href="mailto:neale@woozle.org">Email</a></li>
</ul>
</nav>
<p id="timestamp">Last modified: {{.Lastmod | time.Format "2006-Jan-02"}}</p>
</footer>
</body>
</html>