Reformat the head template a little bit
This commit is contained in:
parent
aeafd0b530
commit
4c3a61ad5d
1 changed files with 7 additions and 7 deletions
|
@ -8,15 +8,15 @@
|
|||
<title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ site.Title }}</title>
|
||||
|
||||
{{- if eq .Kind "page" -}}
|
||||
<meta name="description" content="{{ .Summary }}" />
|
||||
<meta name="author" content="{{ .Params.Author | default site.Author.name }}">
|
||||
{{ else }}
|
||||
<meta name="description" content="{{ .Params.description }}">
|
||||
<meta name="author" content="{{ site.Author.name }}">
|
||||
<meta name="description" content="{{ .Summary }}" />
|
||||
<meta name="author" content="{{ .Params.Author | default site.Author.name }}">
|
||||
{{ else }}
|
||||
<meta name="description" content="{{ .Params.description }}">
|
||||
<meta name="author" content="{{ site.Author.name }}">
|
||||
{{- end -}}
|
||||
|
||||
{{- range $.Scratch.Get "social-list" -}}
|
||||
<link rel="preload" as="image" href="{{ printf `%s.svg` . | absURL }}">
|
||||
<link rel="preload" as="image" href="{{ printf `%s.svg` . | absURL }}">
|
||||
{{- end -}}
|
||||
|
||||
<link rel="icon" href="{{ `favicon.ico` | absURL }}">
|
||||
|
@ -25,7 +25,7 @@
|
|||
{{ hugo.Generator }}
|
||||
|
||||
{{- range .AlternativeOutputFormats -}}
|
||||
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink }}" title="{{ site.Title }}">
|
||||
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink }}" title="{{ site.Title }}">
|
||||
{{- end -}}
|
||||
|
||||
{{- if or hugo.IsProduction (eq site.Params.env "production") -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue