diff options
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 99546be..ef91b1d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,20 +1,18 @@ <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - {{ if eq .URL "/" }} + {{- if eq .URL "/" }} <meta name="description" content="{{ .Site.Params.Description }}"> - {{ else }} - {{ if .Description }} - <meta name="description" content="{{ .Description }}"> - {{ end }} - {{ end }} + {{- else if .Description }} + <meta name="description" content="{{ .Description }}"> + {{- end }} <title> - {{ if eq .URL "/" }} + {{- if eq .URL "/" }} {{ .Site.Title }} - {{ else }} + {{- else }} {{ .Title }} · {{ .Site.Title }} - {{ end }} + {{- end }} </title> <!-- CSS --> |