Skip to content

Commit

Permalink
feat: add Social Previews (#216)
Browse files Browse the repository at this point in the history
Add Hugo's built-in support for generating social previews when posting a link on social media sites. (Uses the open graph protocol).
  • Loading branch information
DandyLyons authored Aug 2, 2024
1 parent 8aae27c commit 51636b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 */}}

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

0 comments on commit 51636b7

Please sign in to comment.