fix: metas and opengraph

This commit is contained in:
Matthieu Bessat 2024-04-02 10:41:44 +02:00
parent 53c41662bd
commit 4ac2ea869a
9 changed files with 15 additions and 28 deletions

View file

@ -12,7 +12,7 @@
{{ range .Paginator.Pages }}
<li class="news-item">
<a href="{{ .RelPermalink }}" class="news-item__image">
{{ $featuredImage := (resources.Get (printf "%s" ("cover/cover.jpg" | safeURL))) }}
{{ $featuredImage := (resources.Get (.Site.Params.defaultCoverImage.src | safeURL)) }}
{{ if .Params.featured_image }}
{{ $featuredImage = .Resources.GetMatch (.Params.featured_image.src | safeURL) }}