summaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorSangeeth Sudheer <id.github@sangeeth.dev>2024-10-28 11:33:32 +0530
committerGitHub <noreply@github.com>2024-10-28 11:33:32 +0530
commita3dcbc30f900b2e98b90fda9f0cc4f93a3ccb08e (patch)
tree92d61a774c6a18f361b67e0a5890f40f39998534 /layouts/partials
parent08acb542be7de75b799a948caa5fd3ceaf8d2c0f (diff)
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
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/head.html2
1 files changed, 2 insertions, 0 deletions
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 @@
<link rel="canonical" href="{{ .Permalink }}"/>
+{{ template "_internal/opengraph.html" . }}
+
{{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}