diff options
-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 }} |