From aa56204bf1a1e01794bbd278f17bddb964744dd7 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Fri, 5 Jul 2024 12:14:55 -0700 Subject: [PATCH] Re-add opengraph.html to head, create override opengraph.html implementation --- Jafner.dev/layouts/partials/head.html | 1 + Jafner.dev/layouts/partials/opengraph.html | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 Jafner.dev/layouts/partials/opengraph.html diff --git a/Jafner.dev/layouts/partials/head.html b/Jafner.dev/layouts/partials/head.html index f00ffdee..e48f9b37 100644 --- a/Jafner.dev/layouts/partials/head.html +++ b/Jafner.dev/layouts/partials/head.html @@ -37,6 +37,7 @@ {{ template "_internal/schema.html" . }} {{ template "_internal/twitter_cards.html" . }} +{{ template "_internal/opengraph.html" . }} {{ range .Params.categories }} diff --git a/Jafner.dev/layouts/partials/opengraph.html b/Jafner.dev/layouts/partials/opengraph.html new file mode 100644 index 00000000..18af3fda --- /dev/null +++ b/Jafner.dev/layouts/partials/opengraph.html @@ -0,0 +1,18 @@ + + + + + +{{- if .IsPage }} +{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} + +{{ with .PublishDate }}{{ end }} +{{ with .Lastmod }}{{ end }} +{{- end -}} + +{{- with .Params.audio }}{{ end }} +{{- with .Params.locale }}{{ end }} +{{- with .Site.Params.title }}{{ end }} +{{- with .Params.videos }}{{- range . }} + +{{ end }}{{ end }}