fix: metas and opengraph
All checks were successful
Deploy workflow / deploy (push) Successful in 35s

This commit is contained in:
Matthieu Bessat 2024-04-02 10:41:44 +02:00
parent ae2accd6db
commit ac68014559
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) }}