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

github.com/EmielH/stip-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Hollander <EmielH@users.noreply.github.com>2019-04-02 21:56:41 +0300
committerEmiel Hollander <EmielH@users.noreply.github.com>2019-04-02 21:56:41 +0300
commita4fe7a835f8e2acfd0910377f31e0aabeb82e601 (patch)
treeee9a25b50e3b5e9442bec49637ce24b953e881be
parent178a4c88511d009e2a58d1edc773ad5e896b1ffd (diff)
Use .IsHome instead of eq .URL "/"
.Page.URL will be deprecated in Hugo 0.55.0
-rw-r--r--layouts/partials/head.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index da2be99..fd787b0 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,14 +1,14 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- {{- if eq .URL "/" }}
+ {{- if .IsHome }}
<meta name="description" content="{{ .Site.Params.Description }}">
{{- else if .Description }}
<meta name="description" content="{{ .Description }}">
{{- end }}
<title>
- {{- if eq .URL "/" }}
+ {{- if .IsHome }}
{{ .Site.Title }}
{{- else }}
{{ .Title }} &middot; {{ .Site.Title }}