diff --git a/static/logo.png b/content/logo.png similarity index 100% rename from static/logo.png rename to content/logo.png diff --git a/static/logo.svg b/content/logo.svg similarity index 100% rename from static/logo.svg rename to content/logo.svg diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 202bc21e..4a8a20f8 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -4,6 +4,7 @@ {{ with .Site.Author.name }}{{ end }} +{{ partial "social-images" . }} {{ partial "open-graph" . }} diff --git a/layouts/partials/open-graph.html b/layouts/partials/open-graph.html index 6a0674dd..ab38100e 100644 --- a/layouts/partials/open-graph.html +++ b/layouts/partials/open-graph.html @@ -1,10 +1,3 @@ -{{- $imagePath := "" }} -{{- with .Params.image }} - {{- $imagePath = (path.Join "content" $.File.Dir "images/" .) }} -{{- else }} - {{- $imagePath = (path.Join "content" $.Site.Params.defaultimage) }} -{{- end }} - @@ -12,12 +5,10 @@ -{{- with (imageConfig $imagePath) }} - - - - -{{- end }} + + + + {{- if and .IsPage (eq .Type "notes") }} {{- if not .PublishDate.IsZero }} diff --git a/layouts/partials/schema-article.html b/layouts/partials/schema-article.html index ebdebc08..35a25f79 100644 --- a/layouts/partials/schema-article.html +++ b/layouts/partials/schema-article.html @@ -1,8 +1,3 @@ -{{- $imagePath := "" }} -{{- with .Params.image }} - {{- $imagePath = (path.Join "content" $.File.Dir "images/" .) }} -{{- end }} - diff --git a/layouts/partials/schema-person.html b/layouts/partials/schema-person.html index 73588977..115a9c30 100644 --- a/layouts/partials/schema-person.html +++ b/layouts/partials/schema-person.html @@ -1,10 +1,4 @@ {{- with .Site.Author -}} - -{{- $imagePath := "" }} -{{- with $.Site.Params.defaultimage }} - {{- $imagePath = (path.Join "content" .) }} -{{- end }} -