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 }}
|
{{- $feature := $images.GetMatch "*feature*" | default $cover }}
|
||||||
<article>
|
<article>
|
||||||
<header class="max-w-prose">
|
<header class="max-w-prose">
|
||||||
|
<meta property="og:image" content="{{ $feature.RelPermalink | absURL }}" />
|
||||||
{{ if .Params.showBreadcrumbs | default (.Site.Params.article.showBreadcrumbs | default false) }}
|
{{ if .Params.showBreadcrumbs | default (.Site.Params.article.showBreadcrumbs | default false) }}
|
||||||
{{ partial "breadcrumbs.html" . }}
|
{{ partial "breadcrumbs.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue