homepage/layouts/_default/baseof.html

80 lines
2.6 KiB
HTML
Raw 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>
2023-09-25 16:07:41 -06:00
<h1 class="title {{if .Draft}}draft{{end}}">
{{ if eq .Kind "term" }}
{{ humanize .Type }}: {{ humanize .Title }}
{{ else }}
{{ .Title }}
{{ end }}
</h1>
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 }}
<nav class="tags">
Tags:
{{ range . }}
<a href="/tags/{{ . | urlize }}">{{ humanize . }}</a>
{{ end }}
</nav>
{{ 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>