diff --git a/layouts/partials/description-or-summary.html b/layouts/partials/description-or-summary.html index b666149..be5f6ea 100644 --- a/layouts/partials/description-or-summary.html +++ b/layouts/partials/description-or-summary.html @@ -1,9 +1,7 @@ -{{- with .Description -}} -
{{- . | markdownify -}}
-{{- else -}} - {{- with .Summary -}} - {{- . -}} - {{- else -}} - {{- .Site.Params.description -}} - {{- end -}} -{{- end -}} +{{ with .Description }} +{{ . | markdownify }}
+{{ else }} + {{ with .Summary }} + {{ . }} + {{ end }} +{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 975b0ce..d166d08 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/description.html b/layouts/partials/seo-tags/description.html new file mode 100644 index 0000000..b666149 --- /dev/null +++ b/layouts/partials/seo-tags/description.html @@ -0,0 +1,9 @@ +{{- with .Description -}} +{{- . | markdownify -}}
+{{- else -}} + {{- with .Summary -}} + {{- . -}} + {{- else -}} + {{- .Site.Params.description -}} + {{- end -}} +{{- end -}} diff --git a/layouts/partials/seo-tags/opengraph.html b/layouts/partials/seo-tags/opengraph.html index fb791f0..a88cd75 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 0e4934c..e117efb 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 1805446..095da4d 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 }}