diff options
author | Emiel Hollander <EmielH@users.noreply.github.com> | 2019-04-02 21:56:41 +0300 |
---|---|---|
committer | Emiel Hollander <EmielH@users.noreply.github.com> | 2019-04-02 21:56:41 +0300 |
commit | a4fe7a835f8e2acfd0910377f31e0aabeb82e601 (patch) | |
tree | ee9a25b50e3b5e9442bec49637ce24b953e881be | |
parent | 178a4c88511d009e2a58d1edc773ad5e896b1ffd (diff) |
Use .IsHome instead of eq .URL "/"
.Page.URL will be deprecated in Hugo 0.55.0
-rw-r--r-- | layouts/partials/head.html | 4 |
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 }} · {{ .Site.Title }} |