pmoreno-rodriguez / grav-theme-editorial

Editorial is a GravCMS port of the Editorial theme from HTML5Up.net.
https://editorial.pmdesign.dev
Other
15 stars 4 forks source link

Missing "page" in blog-list-item.html.twig #5

Closed Fazarel closed 1 year ago

Fazarel commented 1 year ago

In blog-list-item.html.twig, first line: {% set image = page.media[header.featured_image] ?: page.media.images|first %}

I think it should be: {% set image = page.media[page.header.featured_image] ?: page.media.images|first %}

otherwise it's always "first image" that is used, never featured_image

pmoreno-rodriguez commented 1 year ago

@Fazarel thanks for your correction. I will fix it for the next version.

pmoreno-rodriguez commented 1 year ago

Fixed in new version 1.0.4. Thanks