From 51636b72d93dd01b73e65442d22c4fd06fff991a Mon Sep 17 00:00:00 2001 From: Daniel Lyons <72824209+DandyLyons@users.noreply.github.com> Date: Thu, 1 Aug 2024 22:30:34 -0600 Subject: [PATCH] feat: add Social Previews (#216) Add Hugo's built-in support for generating social previews when posting a link on social media sites. (Uses the open graph protocol). --- layouts/partials/head.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 97d7f17b..61bf215c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -2,6 +2,12 @@ {{- partial "meta/main.html" . }} {{- hugo.Generator }} + {{/* Open Graph tags */}} + {{ template "_internal/opengraph.html" . }} + + {{/* Twitter Card tags */}} + {{ template "_internal/twitter_cards.html" . }} + {{/* Canonical link, RSS */}}