Skip to content

Commit 816aca1

Browse files
Lance BarkerLance Barker
authored andcommitted
wire featureimage to og:image for FB sharing
1 parent 7bf69e5 commit 816aca1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

layouts/partials/extend-head.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{/* Emit og:image and twitter:image from featureimage frontmatter param */}}
2+
{{ with .Params.featureimage }}
3+
<meta property="og:image" content="{{ . | absURL }}">
4+
<meta name="twitter:image" content="{{ . | absURL }}">
5+
{{ end }}

0 commit comments

Comments
 (0)