mirror of https://github.com/jpanther/congo.git
Adding og:image parameter to single
Would be nice to add teh meta of:image to the single post so the cover image can be the image highlight when sharing the post Read: https://discourse.gohugo.io/t/display-first-image-in-post-in-link-preview/10541pull/361/head
parent
2977412974
commit
598e323991
|
@ -4,6 +4,7 @@
|
|||
{{- $feature := $images.GetMatch "*feature*" | default $cover }}
|
||||
<article>
|
||||
<header class="max-w-prose">
|
||||
<meta property="og:image" content="{{ $feature.RelPermalink | absURL }}" />
|
||||
{{ if .Params.showBreadcrumbs | default (.Site.Params.article.showBreadcrumbs | default false) }}
|
||||
{{ partial "breadcrumbs.html" . }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue