Clean up some of the tag formatting in head.html
This commit is contained in:
parent
68e2f6e0ac
commit
10d7bc1ddd
1 changed files with 7 additions and 4 deletions
|
@ -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 }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue