mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 20:08:54 +00:00
Improved the definition of variables.
Improved the definition of title, subtitle and image variables. Added the featured image, subtitle and content
This commit is contained in:
parent
7bd8e5c494
commit
72440d8d27
1 changed files with 12 additions and 4 deletions
|
@ -1,13 +1,21 @@
|
|||
{% set image = page.media[page.header.primaryImage] ?: page.media.images|first %}
|
||||
{% set title = page.title|raw %}
|
||||
{% set subtitle = page.header.subtitle|raw %}
|
||||
{% set columns = page.header.layout == 'standard' ? 'col-4 col-6-medium col-12-small' : 'col-6 col-12-small' %}
|
||||
|
||||
<section id="features">
|
||||
<header>
|
||||
<h2>{{ page.title }}</h2>
|
||||
{% if page.header.subtitle %}
|
||||
<p>{{ page.header.subtitle }}</p>
|
||||
<h2>{{ title }}</h2>
|
||||
{% if subtitle %}
|
||||
<p>{{ subtitle }}</p>
|
||||
{% endif %}
|
||||
</header>
|
||||
{{ content|raw }}
|
||||
|
||||
{% if image %}
|
||||
{{ image.cropZoom(1038,437).loading('lazy').html(title, title, 'image featured')|raw }}
|
||||
{% endif %}
|
||||
|
||||
{{ page.content|raw }}
|
||||
|
||||
<div class="row gtr-uniform">
|
||||
{% for feature in page.header.features %}
|
||||
|
|
Loading…
Add table
Reference in a new issue