add date
This commit is contained in:
@@ -25,8 +25,8 @@ pages:
|
||||
list:
|
||||
count: 20
|
||||
dateformat:
|
||||
short: 'jS M Y'
|
||||
long: 'F jS \a\t g:ia'
|
||||
short: 'd.m.y'
|
||||
long: 'd.m.y'
|
||||
publish_dates: true
|
||||
process:
|
||||
markdown: true
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
---
|
||||
title: 'News 1'
|
||||
image_align: left
|
||||
date_start: '15-08-2018 15:09'
|
||||
date_end: '21-08-2018 15:19'
|
||||
date: '05-08-2018 14:54'
|
||||
---
|
||||
|
||||
Faux-texte: a pour fonction de faire office de texte de substitution ou d'outil permettant la comparaison et l'appréciation de différentes polices.
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
---
|
||||
title: 'News 2'
|
||||
image_align: left
|
||||
date_start: '01-08-2018 15:08'
|
||||
date_end: '02-08-2018 15:08'
|
||||
---
|
||||
|
||||
Faux-texte: a pour fonction de faire office de texte de substitution ou d'outil permettant la comparaison et l'appréciation de différentes polices.
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -114,4 +114,13 @@ p{
|
||||
text-transform: uppercase;
|
||||
font-weight: normal;
|
||||
}
|
||||
.blog-date{
|
||||
time{
|
||||
font-family:$roboto_light;
|
||||
text-transform: uppercase;
|
||||
font-weight: normal;
|
||||
font-size:0.8em;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
<section class="news">
|
||||
|
||||
{% include 'partials/blog/date.html.twig' %}
|
||||
|
||||
<h3><a href="#">{{header.title}}</a></h3>
|
||||
|
||||
<div class="txt">
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
<span class="blog-date">
|
||||
<time class="dt-published" datetime="{{ page.date|date("c") }}">
|
||||
<i class="fa fa-calendar"></i> {{ page.date|date(system.pages.dateformat.short) }}
|
||||
<i class="fa fa-calendar"></i> {{ page.header.date_start|date(system.pages.dateformat.short) }}
|
||||
|
||||
{% if page.header.date_end %}
|
||||
|
||||
- <i class="fa fa-calendar"></i> {{ page.header.date_end|date(system.pages.dateformat.short) }}
|
||||
|
||||
{% endif %}
|
||||
</time>
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user