homepage/layouts/_default/baseof.html

93 lines
3.0 KiB
HTML
Raw Permalink Normal View History

2022-09-04 16:59:13 -06:00
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width">
2023-01-24 16:13:28 -07:00
<link rel="me" href="https://teh.entar.net/@neale">
2023-06-23 16:06:56 -06:00
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&family=Roboto:ital,wght@0,400;0,700;1,400&display=swap">
2022-09-04 16:59:13 -06:00
<!-- My stuff -->
<link rel="icon" type="image/png" href="{{"/assets/images/face.png" | relURL}}">
2022-10-09 20:59:33 -06:00
<link rel="stylesheet" media="screen" href="{{"/assets/css/default.css" | relURL}}">
2022-09-04 16:59:13 -06:00
{{range .AlternativeOutputFormats}}
<link rel="{{.Rel}}" type="{{.MediaType.Type}}" title="{{$.Site.Title}}" href="{{.Permalink}}">
{{end}}
2022-10-09 20:59:33 -06:00
{{range .Params.stylesheets}}
2022-10-10 15:53:55 -06:00
{{$url := .}}
{{with $.Page.Resources.GetMatch .}}
{{$url = .RelPermalink}}
{{end}}
<link rel="stylesheet" media="screen" href="{{$url}}">
2022-10-09 20:59:33 -06:00
{{end}}
{{range .Params.scripts}}
{{end}}
2022-09-04 16:59:13 -06:00
{{range .Params.scripts}}
2022-10-10 13:19:19 -06:00
{{$url := .}}
{{with $.Page.Resources.GetMatch .}}
2022-10-10 15:53:55 -06:00
{{$url = .RelPermalink}}
2022-10-10 13:19:19 -06:00
{{end}}
2023-09-25 16:07:41 -06:00
{{- if strings.HasSuffix . ".mjs" }}
<script src="{{$url}}" type="module"></script>
{{- else }}
<script src="{{$url}}"></script>
{{- end }}
2022-09-04 16:59:13 -06:00
{{end}}
{{range .Params.headers}}
2023-09-25 16:07:41 -06:00
{{. | safeHTML}}
2022-09-04 16:59:13 -06:00
{{end}}
2023-09-25 16:07:41 -06:00
<title>{{.Title}}</title>
2022-09-04 16:59:13 -06:00
</head>
<body>
<header class="{{if .Draft}}draft{{end}}">
<h1>
{{ if eq .Kind "term" }}
{{ humanize .Type }}: {{ humanize .Title }}
{{ else }}
{{ .Title }}
{{ end }}
</h1>
{{ with .Params.subtitle }}
<div class="tagline">
{{ . }}
{{ with $.Date }}
2024-01-20 15:18:18 -07:00
({{ time.Format "2006-Jan-02" . }})
{{ end }}
</div>
2023-09-25 16:07:41 -06:00
{{ else }}
{{ with $.Date }}
<div class="tagline">{{. | time.Format "2006-Jan-02"}}</div>
{{ end }}
2023-09-25 16:07:41 -06:00
{{ end }}
</header>
2022-09-04 16:59:13 -06:00
<main id="content">
{{ block "main" . }}{{end}}
</main>
2023-09-25 16:07:41 -06:00
{{ with .Params.tags }}
2023-09-25 17:14:16 -06:00
<ul class="tags compact">
2023-09-25 16:07:41 -06:00
{{ range . }}
2023-09-25 17:14:16 -06:00
<li><a href="/tags/{{ . | urlize }}">{{ humanize . }}</a></li>
2023-09-25 16:07:41 -06:00
{{ end }}
2023-09-25 17:14:16 -06:00
</ul>
2023-09-25 16:07:41 -06:00
{{ end }}
2022-09-04 16:59:13 -06:00
<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>
2022-09-04 19:54:41 -06:00
<p id="timestamp">Last modified: {{.Lastmod | time.Format "2006-Jan-02"}}</p>
2022-09-04 16:59:13 -06:00
</footer>
</body>
</html>