diff options
| author | Francesco Tomaselli <tomaselli.fr@gmail.com> | 2025-04-01 11:20:48 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-01 11:20:48 +0200 | 
| commit | 41ea8e970a4563d8cb7529b212742bdca5d519ad (patch) | |
| tree | 5bc3d761cf0d549f5052ad6c30f2bf15f2d3c6c0 /layouts/partials | |
| parent | 361e58e6660b646eb56a538f8840cccabcc01fed (diff) | |
| parent | 24a7117baa4b51a531fa47c40201b3819746de41 (diff) | |
Merge pull request #100 from runofthemillgeek/feat/og-image-partial
Add partial to customize og:image meta property
Diffstat (limited to 'layouts/partials')
| -rw-r--r-- | layouts/partials/head/og-image.html | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/layouts/partials/head/og-image.html b/layouts/partials/head/og-image.html new file mode 100644 index 0000000..79ca9aa --- /dev/null +++ b/layouts/partials/head/og-image.html @@ -0,0 +1,5 @@ +{{- if (or .IsHome .IsPage) -}} +  {{- with resources.GetMatch "images/og-image.{webp,png,jpg}" -}} +    {{- .RelPermalink -}} +  {{- end -}} +{{- end -}}
\ No newline at end of file | 
