diff --git a/layouts/partials/head.html b/layouts/partials/head.html index fef85796..da7f4567 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -19,7 +19,7 @@ {{- $title := printf "Overview of all pages with the %s #%s" .Data.Singular $.Title }} {{- $.Scratch.Set "Title" $title }} {{- else }} - {{- $.Scratch.Set "Description" ( .Description | default .Params.subtitle | default .Summary ) }} +{{- $.Scratch.Set "Description" ( .Description | default .Params.subtitle | default .Summary | default .Site.Params.Description ) }} {{- $.Scratch.Set "Title" ( .Title | default .Site.Title ) }} {{- end }} @@ -45,7 +45,7 @@ {{- end -}} -{{- with .Params.share_img | default .Params.image | default .Site.Params.logo }} +{{- with .Params.featured_image | default .Params.share_img | default .Params.image| default .Site.Params.logo }} {{- end }} diff --git a/layouts/partials/seo/opengraph.html b/layouts/partials/seo/opengraph.html index 19e6ee0c..d2083a36 100644 --- a/layouts/partials/seo/opengraph.html +++ b/layouts/partials/seo/opengraph.html @@ -4,7 +4,7 @@ {{- with .Description | default .Params.subtitle | default .Summary }} {{- end }} -{{- with .Params.share_img | default .Params.image | default .Site.Params.logo }} +{{- with .Params.featured_image | default .Params.share_img | default .Params.image| default .Site.Params.logo }} {{- end }} {{- with .Site.Params.fb_app_id }} @@ -12,4 +12,4 @@ {{- end }} - \ No newline at end of file + diff --git a/layouts/partials/seo/structured/article.html b/layouts/partials/seo/structured/article.html index b828456c..3a16cfc6 100644 --- a/layouts/partials/seo/structured/article.html +++ b/layouts/partials/seo/structured/article.html @@ -3,6 +3,7 @@ "@context": "http://schema.org", "@type": "Article", "author": { + "@type": "Person", "name" : "{{ if .Params.author -}}{{ .Params.author }}{{- else if .Site.Author.name -}}{{ .Site.Author.name }}{{- end }}" }, "headline": "{{ .Title }}", @@ -10,13 +11,13 @@ "inLanguage" : "{{ .Lang }}", "wordCount": {{ .WordCount }}, "datePublished" : "{{ .PublishDate.Format "2006-01-02T15:04:05" }}", - "dateModified" : "{{ .Date.Format "2006-01-02T15:04:05" }}", - "image" : "{{ .Site.Params.logo | absURL }}", + "dateModified" : "{{ .Lastmod.Format "2006-01-02T15:04:05" }}", + "image" : " {{ if .Params.featured_image }}{{.Params.featured_image | absURL}}{{else}}{{ .Site.Params.logo | absURL }}{{end}}", "keywords" : [ "{{ range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}" ], "mainEntityOfPage" : "{{ .Permalink }}", "publisher" : { "@type": "Organization", - "name" : "{{ .Site.BaseURL }}", + "name" : "{{ .Site.Title }}", "logo" : { "@type" : "ImageObject", "url" : "{{ .Site.Params.logo | absURL }}", @@ -25,4 +26,4 @@ } } } - \ No newline at end of file + diff --git a/layouts/partials/seo/twitter.html b/layouts/partials/seo/twitter.html index 0eb1e9b8..9fe1bcad 100644 --- a/layouts/partials/seo/twitter.html +++ b/layouts/partials/seo/twitter.html @@ -4,11 +4,11 @@ {{- with .Description | default .Params.subtitle | default .Summary }} {{- end }} -{{- with .Params.share_img | default .Params.image | default .Site.Params.logo }} +{{- with .Params.featured_image | default .Params.share_img | default .Params.image| default .Site.Params.logo }} {{- end }} {{- with .Site.Author.twitter }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/layouts/partials/share-links.html b/layouts/partials/share-links.html index d264d1c6..3533ac2d 100644 --- a/layouts/partials/share-links.html +++ b/layouts/partials/share-links.html @@ -4,52 +4,52 @@
- {{ end }} \ No newline at end of file + {{ end }}