Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Fazarel opened this issue Jan 19, 2023 · 2 comments
Closed

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

Fazarel opened this issue Jan 19, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Fazarel
Copy link
Contributor

Fazarel commented Jan 19, 2023

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 pmoreno-rodriguez added the bug Something isn't working label Jan 19, 2023
@pmoreno-rodriguez pmoreno-rodriguez self-assigned this Jan 19, 2023
@pmoreno-rodriguez
Copy link
Owner

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

@pmoreno-rodriguez
Copy link
Owner

Fixed in new version 1.0.4. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants