From c75de6cf2f785485e03ab8096b647191b4bf4933 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 25 Mar 2024 18:24:52 +0200 Subject: [PATCH] social.html: include microdata template (#439) --- hugo.yml | 4 ++-- src/layouts/_default/baseof.html | 2 +- src/layouts/partials/social.html | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hugo.yml b/hugo.yml index 1584c0270..cf0e7529e 100644 --- a/hugo.yml +++ b/hugo.yml @@ -98,8 +98,8 @@ params: analytics: fathom_site: "ITUSEYJG" - # This is currently used by Hugo's internal twitter_cards.html and opengraph.html templates; - # the first image in the following array is always used, unless specified in the front matter + # This is currently used by Hugo's internal templates; the first image + # in the following array is always used, unless specified in the front matter images: - "/assets/img/bootstrap-social.png" diff --git a/src/layouts/_default/baseof.html b/src/layouts/_default/baseof.html index edc75d5e4..53189319e 100644 --- a/src/layouts/_default/baseof.html +++ b/src/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - + {{ partial "head" . }} diff --git a/src/layouts/partials/social.html b/src/layouts/partials/social.html index 4545a1b22..0abc92038 100644 --- a/src/layouts/partials/social.html +++ b/src/layouts/partials/social.html @@ -9,7 +9,7 @@ {{ template "_internal/twitter_cards.html" . -}} -{{- /* Manually add `twitter:creator` since Hugo's internal shortcode has some issues */ -}} +{{- /* Manually add `twitter:creator` since Hugo's internal shortcode doesn't add it */ -}} {{ template "_internal/opengraph.html" . -}} @@ -20,3 +20,5 @@ {{- end }} + +{{ template "_internal/schema.html" . -}}