From 1bff47756131a301c8781b640efd752475af3c49 Mon Sep 17 00:00:00 2001 From: Sangeeth Sudheer Date: Mon, 28 Oct 2024 11:33:32 +0530 Subject: [PATCH] Add support for Open Graph tags This change will allow us to use the `images` property in frontmatter to display a cover image when sharing links to content in social media. Open Graph support is provided out of the box with Hugo and is a one-line change. See docs: https://gohugo.io/templates/embedded/#open-graph --- layouts/partials/head.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0a704fd..d2d28e3 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -29,6 +29,8 @@ +{{ template "_internal/opengraph.html" . }} + {{ partialCached "head/css.html" . }} {{ partialCached "head/js.html" . }}