diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a0ea0d9..12cd30c 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -8,7 +8,7 @@ {{- partial "site-meta.html" . -}} {{ $author := (.Params.author | default .Site.Params.author.name) -}} {{- with .Page.Params.description | default .Site.Params.description -}}{{- end -}} -{{- partial "structured-data.html" . -}} +{{- partial "structure-extra.html" . -}} {{.Title}} {{ range .AlternativeOutputFormats -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Title | safeHTML }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 8562162..aa74570 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -16,7 +16,7 @@ {{- with .Site.Params.socialLinks -}} {{- partialCached "social-icons.html" . -}} {{- end -}} - {{- if and (not (eq .Site.Params.shareSocial nil)) (.Site.Params.shareSocial) -}}{{- partial "social-share.html" . -}}{{- end -}} + {{- if and (not (eq .Site.Params.shareSocial nil)) (.Site.Params.shareSocial) (templates.Exists "partials/social-share.html") -}}{{- partial "social-share.html" . -}}{{- end -}} diff --git a/layouts/partials/structure-extra.html b/layouts/partials/structure-extra.html new file mode 100644 index 0000000..5693634 --- /dev/null +++ b/layouts/partials/structure-extra.html @@ -0,0 +1,6 @@ +{{/* We use some Hugo built-in templates, you can find their source here: */}} +{{/* https://github.com/gohugoio/hugo/tree/master/tpl/tplimpl/embedded/templates */}} + +{{- template "_internal/schema.html" . -}} +{{- template "_internal/opengraph.html" . -}} +{{- template "_internal/twitter_cards.html" . -}} \ No newline at end of file