- {{ partial "opengraph.html" . }} {{ if .Params.showFullContent }} {{ .Content }} {{ else if .Description }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index acb7161..ecc6c3a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,5 @@ {{ define "main" }}
- {{ partial "opengraph.html" . }}
@@ -9,7 +8,7 @@
{{ partial "cover.html" . }} - + {{ .TableOfContents }} {{ .Content | replaceRE "()" `${1} ${3}` | safeHTML }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 84cd750..f6708b1 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -43,33 +43,7 @@ {{ end }} - - - - - - -{{ if (isset .Params "cover") }} - {{ $pageCover := .Param "cover" }} - {{ with (.Resources.GetMatch (.Param "cover")) }} - {{ $pageCover = .RelPermalink }} - {{ end }} - -{{ else }} - {{ if isset $.Site.Params "favicon" }} - - {{ else }} - - {{ end }} -{{ end }} - - -{{ range .Params.categories }} - -{{ end }} -{{ if isset .Params "date" }} - -{{ end }} +{{ partial "opengraph.html" .}} {{ with .OutputFormats.Get "RSS" }} diff --git a/layouts/partials/opengraph.html b/layouts/partials/opengraph.html index 4ff43f4..bca2f24 100644 --- a/layouts/partials/opengraph.html +++ b/layouts/partials/opengraph.html @@ -35,10 +35,18 @@ {{- end }} -{{- with partial "_funcs/get-page-images" . }} - {{- range . | first 6 }} - - {{- end }} +{{ if (isset .Params "cover") }} + {{ $pageCover := .Param "cover" }} + {{ with (.Resources.GetMatch (.Param "cover")) }} + {{ $pageCover = .RelPermalink }} + {{ end }} + +{{ else }} + {{ if isset $.Site.Params "favicon" }} + + {{ else }} + + {{ end }} {{- end }} {{- with .Params.audio }}