mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 20:08:54 +00:00
Fixed page date in miniposts
This commit is contained in:
parent
ea1b64f3a9
commit
a5c140a265
1 changed files with 3 additions and 3 deletions
|
@ -32,11 +32,11 @@
|
|||
<a href="{{ p.url }}" aria-label="{{ title }}">{{ title }}</a>
|
||||
</h3>
|
||||
{% if config.plugins["translate-date"].enabled %}
|
||||
<time class="published" itemprop="datePublished" datetime="{{ page.date|td(null, "Y-m-d") }}">{{ page.date|td(null, "M j, Y") }}</time>
|
||||
<time class="published" itemprop="datePublished" datetime="{{ p.date|td(null, "Y-m-d") }}">{{ p.date|td(null, "M j, Y") }}</time>
|
||||
{% elseif config.plugins["twig-extensions"].enabled %}
|
||||
<time class="published" itemprop="datePublished" datetime="{{ page.date|localizeddate('medium', 'none', lang) }}">{{ page.date|localizeddate('medium', 'none', lang) }}</time>
|
||||
<time class="published" itemprop="datePublished" datetime="{{ p.date|localizeddate('medium', 'none', lang) }}">{{ p.date|localizeddate('medium', 'none', lang) }}</time>
|
||||
{% else %}
|
||||
<time class="published" itemprop="datePublished" datetime="{{ page.date|date("Y-m-d") }}">{{ page.date|date("M j, Y") }}</time>
|
||||
<time class="published" itemprop="datePublished" datetime="{{ p.date|date("Y-m-d") }}">{{ p.date|date("M j, Y") }}</time>
|
||||
{% endif %}
|
||||
{% if avatar %}
|
||||
<a href="{{ p.url }}" class="author" title="{{ author }}"><img src="{{ avatar }}" alt="{{ author }}"/></a>
|
||||
|
|
Loading…
Add table
Reference in a new issue