mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-28 06:08:53 +00:00
Added page.header.metadata.author to blog_item template
This commit is contained in:
parent
ff069ae021
commit
d0f71738a2
1 changed files with 40 additions and 39 deletions
|
@ -1,9 +1,13 @@
|
||||||
<article class="post" itemprop="liveBlogUpdate" itemscope itemtype="http://schema.org/BlogPosting">
|
<article class="post" itemprop="liveBlogUpdate" itemscope itemtype="http://schema.org/BlogPosting">
|
||||||
{% if page.header.author %}
|
|
||||||
|
{% if page.header.metadata.author %}
|
||||||
|
{% set author = page.header.metadata.author %}
|
||||||
|
{% elseif page.header.author %}
|
||||||
{% set author = page.header.author %}
|
{% set author = page.header.author %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set author = page.header.taxonomy.author[0] %}
|
{% set author = page.header.taxonomy.author[0] %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if author %}
|
{% if author %}
|
||||||
{% set avatar = author|replace(' ', '-')|lower %}
|
{% set avatar = author|replace(' ', '-')|lower %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -33,12 +37,11 @@
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{% if page.header.primaryImage %}
|
{% if page.header.primaryImage %}
|
||||||
<a href="{{ page.url }}" class="image featured">{{ page.media[page.header.primaryImage].cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}</a>
|
<a href="{{ page.url }}">{{ page.media[page.header.primaryImage].cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{{ page.url }}" class="image featured">{{ page.media.images|first.cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}</a>
|
<a href="{{ page.url }}">{{ page.media.images|first.cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
<div itemprop="articleBody">
|
<div itemprop="articleBody">
|
||||||
|
|
||||||
{% if page.header.continue_link is sameas(false) %}
|
{% if page.header.continue_link is sameas(false) %}
|
||||||
|
@ -88,6 +91,4 @@
|
||||||
</a></li>
|
</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
|
||||||
</article>
|
</article>
|
Loading…
Add table
Reference in a new issue