mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 20:08:54 +00:00
Fixed image variable
This commit is contained in:
parent
c89a3b76cd
commit
11c82f8f60
1 changed files with 1 additions and 3 deletions
|
@ -13,7 +13,7 @@
|
|||
{% else %}
|
||||
{% set show_pagination = true %}
|
||||
{% endif %}
|
||||
{% set image = page.media[page.header.primaryImage] %}
|
||||
{% set image = page.media[page.header.primaryImage] ?: page.media.images|first %}
|
||||
{% set title = page.title|raw %}
|
||||
|
||||
{# Set page title by taxonomy #}
|
||||
|
@ -52,8 +52,6 @@
|
|||
|
||||
{% if image %}
|
||||
{{ image.cropZoom(1038,437).loading('lazy').html(title, title, 'image featured')|raw }}
|
||||
{% else %}
|
||||
{{ image|first.cropZoom(1038,437).loading('lazy').html(title,title, 'image featured')|raw }}
|
||||
{% endif %}
|
||||
|
||||
{{ page.content|raw }}
|
||||
|
|
Loading…
Add table
Reference in a new issue