diff --git a/layouts/partials/data/description.html b/layouts/partials/data/description.html index 5531ab5..fa9f785 100644 --- a/layouts/partials/data/description.html +++ b/layouts/partials/data/description.html @@ -1,11 +1,12 @@ -{{- with .Description -}} - {{- . -}} -{{- else -}} - {{- if .IsPage -}} - {{- .Summary -}} - {{- else -}} - {{- with .Site.Params.subtitle -}} - {{- . -}} - {{- end -}} - {{- end -}} -{{- end -}} \ No newline at end of file + +{{ $description := .Site.Params.subtitle }} + +{{ if .Description }} + + {{ $description = .Description }} +{{ else if .IsPage }} + + {{ $description = .Summary }} +{{ end }} + +{{ return ($description | plainify)}} \ No newline at end of file diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html index eb9cc0f..5ab35dd 100644 --- a/layouts/partials/head/head.html +++ b/layouts/partials/head/head.html @@ -1,10 +1,13 @@
- - + + + {{- $description := partial "data/description" . -}} + {{- $title := partial "data/title" . -}} -