From 7635428c853b357d0f7582558ecb02907acd4346 Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Thu, 9 Sep 2021 18:10:58 +0200 Subject: [PATCH] playing with opengraph+twitter+metadata header... --- layouts/_default/baseof.html | 2 +- layouts/partials/head.html | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 21634c3..051e285 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -2,7 +2,7 @@ - {{- partialCached "head.html" . -}} + {{- partial "head.html" . -}} {{- .Title }} - {{ .Site.Title -}} {{- partialCached "sandpointjs.html" . .RelPermalink -}} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index a4dc95d..482f33d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -11,10 +11,21 @@ {{ end }} -{{ if .Params.Author }} - +{{ if .Params.editors }} + {{ range .Params.editors }} + {{ $e := $.GetPage (printf "editor/%s" .) }} + + {{ end }} {{ end }} +{{ if .Params.authors }} + {{ range .Params.authors }} + {{ $e := $.GetPage (printf "author/%s" .) }} + + {{ end }} +{{ end }} + + {{ template "_internal/opengraph.html" . }} {{ template "_internal/twitter_cards.html" . }}