diff --git a/layouts/partials/description-or-summary.html b/layouts/partials/description-or-summary.html index d9c7c8a..b666149 100644 --- a/layouts/partials/description-or-summary.html +++ b/layouts/partials/description-or-summary.html @@ -1,5 +1,9 @@ -{{ with .Description }} -
{{ . | markdownify }}
-{{ else }} - {{ .Summary }} -{{ end }} +{{- with .Description -}} +{{- . | markdownify -}}
+{{- else -}} + {{- with .Summary -}} + {{- . -}} + {{- else -}} + {{- .Site.Params.description -}} + {{- end -}} +{{- end -}} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 93c7d3c..975b0ce 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -33,5 +33,5 @@ {{ partial "seo-tags/author.html" . }} - + diff --git a/layouts/partials/seo-tags/opengraph.html b/layouts/partials/seo-tags/opengraph.html index 935944e..fb791f0 100644 --- a/layouts/partials/seo-tags/opengraph.html +++ b/layouts/partials/seo-tags/opengraph.html @@ -1,5 +1,5 @@ - + diff --git a/layouts/partials/seo-tags/schema.html b/layouts/partials/seo-tags/schema.html index 9f46086..0e4934c 100644 --- a/layouts/partials/seo-tags/schema.html +++ b/layouts/partials/seo-tags/schema.html @@ -1,5 +1,5 @@ - + {{ $format := "2006-01-02T15:04:05-07:00" }} {{ with .Date }} diff --git a/layouts/partials/seo-tags/twitter-cards.html b/layouts/partials/seo-tags/twitter-cards.html index fb3bf7c..1805446 100644 --- a/layouts/partials/seo-tags/twitter-cards.html +++ b/layouts/partials/seo-tags/twitter-cards.html @@ -22,7 +22,7 @@ {{ end }} - + {{ with .Site.Social.twitter }}