Skip to content

Commit

Permalink
Add support for Open Graph tags
Browse files Browse the repository at this point in the history
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
  • Loading branch information
runofthemillgeek authored Oct 28, 2024
1 parent 56f4a62 commit e1c2bf3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

<link rel="canonical" href="{{ .Permalink }}"/>

{{ template "_internal/opengraph.html" . }}

{{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}

Expand Down

0 comments on commit e1c2bf3

Please sign in to comment.