mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-29 14:48:55 +00:00
Revert "Use Grav global date/time format and translate it"
This reverts commit c7064f9863
.
This commit is contained in:
parent
abef78d237
commit
adf56d5c8d
4 changed files with 10 additions and 10 deletions
|
@ -2,10 +2,10 @@
|
|||
{% block content %}
|
||||
<article class="post">
|
||||
<div class="title">
|
||||
<h2>{{ form.message }}</h2>
|
||||
<h2>{{ form.message }}</h2>
|
||||
</div>
|
||||
<div class="meta">
|
||||
<time class="published" datetime="{{form.date|dateTranslate(grav.config.system.pages.dateformat.short)}}">{{ form.date|dateTranslate(grav.config.system.pages.dateformat.short)}}</time>
|
||||
<time class="published" datetime="{{form.date|date("Y-m-d")}}">{{ form.date|date("M j, Y")}}</time>
|
||||
</div>
|
||||
</header>
|
||||
<p>{{'FUTURE.FORM_SUMMARY'|t}}</p>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<section>
|
||||
<ul class="posts">
|
||||
{% for p in page.find(theme_config.blog_page).children.order('date', 'desc').slice(0, 5) %}
|
||||
|
||||
{% if p.header.primaryImage %}
|
||||
|
||||
{% if p.header.primaryImage %}
|
||||
{% set bannerimage = p.media[p.header.primaryImage]%}
|
||||
{% else %}
|
||||
{% set bannerimage = p.media.images|first %}
|
||||
|
@ -11,7 +11,7 @@
|
|||
<article>
|
||||
<header>
|
||||
<h3><a href="{{p.url}}">{{ p.title }}</a></h3>
|
||||
<time class="published" datetime="{{p.date|dateTranslate(grav.config.system.pages.dateformat.short)}}">{{ p.date|dateTranslate(grav.config.system.pages.dateformat.short)}}</time>
|
||||
<time class="published" datetime="{{p.date|date("Y-m-d")}}">{{ p.date|date("M j, Y")}}</time>
|
||||
</header>
|
||||
<a href="{{p.url}}" class="image">
|
||||
{{ bannerimage.cropZoom(64,64).quality(60).loading('lazy').html('',p.title)|raw }}
|
||||
|
|
|
@ -6,16 +6,16 @@
|
|||
<h3>{{ 'FUTURE.FEATURED'|t }}</h3>
|
||||
</header>
|
||||
<div class="mini-posts">
|
||||
|
||||
|
||||
{% for p in page.evaluate({'@taxonomy.category':miniposts_category}).order('header.order', 'asc').slice(0,miniposts_number) %}
|
||||
<article class="mini-post">
|
||||
<header>
|
||||
<h3><a href="{{ p.url }}">{{ p.title }}</a></h3>
|
||||
<time class="published" datetime="{{p.date|dateTranslate(grav.config.system.pages.dateformat.short)}}">{{ p.date|dateTranslate(grav.config.system.pages.dateformat.short)}}</time>
|
||||
<time class="published" datetime="2015-10-20">{{ p.date|date("M j, Y")}}</time>
|
||||
<a href="{{ p.url }}" class="author"><img src="{{ p.media[p.header.avatarImage].url}}" alt="" /></a>
|
||||
</header>
|
||||
<a href="{{ p.url }}" class="image">
|
||||
|
||||
|
||||
{% if p.header.primaryImage %}
|
||||
{{ p.media[p.header.primaryImage].cropZoom(1038,437).loading('lazy').html('',p.title)|raw}}
|
||||
{% else %}
|
||||
|
@ -23,7 +23,7 @@
|
|||
{% endif %}
|
||||
</a>
|
||||
</article>
|
||||
|
||||
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</div>
|
||||
|
||||
<div class="search-details">
|
||||
<span class="search-date">{{ page.date|dateTranslate(config.system.pages.dateformat.short) }}</span>
|
||||
<span class="search-date">{{ page.date|date(config.system.pages.dateformat.short) }}</span>
|
||||
</div>
|
||||
|
||||
<p>{{ page.summary|truncate(200)|raw }}</p>
|
||||
|
|
Loading…
Add table
Reference in a new issue