Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EmielH/tale-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html16
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 }} &middot; {{ .Site.Title }}
- {{ end }}
+ {{- end }}
</title>
<!-- CSS -->