Clean up some of the tag formatting in head.html

This commit is contained in:
Eryn Wells 2021-12-27 10:26:00 -07:00
parent 68e2f6e0ac
commit 10d7bc1ddd

View file

@ -9,13 +9,16 @@
<!-- Meta -->
{{ if eq .Kind "page" }}
<meta name="description" content="{{ .Summary }}" />
<meta name="author" content="{{ .Params.Author | default site.Author.name }}" />
<meta name="author" content="{{ .Params.Author | default site.Author.name }}">
{{ else }}
<meta name="description" content="{{ site.Params.description }}" />
<meta name="author" content="{{ site.Author.name }}" />
<meta name="description" content="{{ site.Params.description }}">
<meta name="author" content="{{ site.Author.name }}">
{{ end }}
<link rel="preload stylesheet" as="style" href="/styles/main.css">
{{ if or (eq .Kind "list") (eq .Kind "term") }}
<link rel="preload stylesheet" as="style" href="/styles/list.css">
{{ end }}
{{ range $stylesheet := .Resources.Match "*.css" }}
<link rel="preload stylesheet" as="style" href="{{ $stylesheet.Permalink }}">
{{ end }}
@ -24,7 +27,7 @@
{{ end }}
{{ if and .IsPage (not site.Params.disableHLJS) }}
<link rel="preload stylesheet" as="style" href="{{ `styles/an-old-hope.min.css` | absURL }}" />
<link rel="preload stylesheet" as="style" href="{{ `styles/an-old-hope.min.css` | absURL }}">
<script
defer
src="{{ `scripts/highlight.min.js` | absURL }}"