diff options
-rw-r--r-- | layouts/partials/head.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d542ae4..5e1a0be 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 }} @@ -18,7 +18,7 @@ <!-- CSS --> {{- $inServerMode := .Site.IsServer }} {{- $cssTarget := "css/style.css" }} - {{- $cssOptions := cond ($inServerMode) (dict "targetPath" $cssTarget "enableSourceMap" true) (dict "targetPath" $cssTarget "outputStyle" "compressed") }} + {{- $cssOptions := cond ($inServerMode) (dict "targetPath" $cssTarget "enableSourceMap" true) (dict "targetPath" $cssTarget "outputStyle" "compressed") }} {{- $style := resources.Get "scss/hallo.scss" | resources.ExecuteAsTemplate "style.hallo.scss" . | toCSS $cssOptions }} <link rel="stylesheet" href="{{ $style.RelPermalink }}"> |