added post infos
This commit is contained in:
parent
ef05bccd26
commit
783d46cb82
@ -5,6 +5,9 @@
|
|||||||
<article class="[ post wrapper ]">
|
<article class="[ post wrapper ]">
|
||||||
<div class="[ post__body ]">
|
<div class="[ post__body ]">
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
|
<div class="post-info">
|
||||||
|
Publié le <strong>{{ date}}</strong>{%if author %} | {{ author }}{% endif %}
|
||||||
|
</div>
|
||||||
{% if illustration %}
|
{% if illustration %}
|
||||||
<img class="post-pic" src="{{ illustration }}" alt="illustration de l'article">
|
<img class="post-pic" src="{{ illustration }}" alt="illustration de l'article">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
title: Réunion d'information Astrolabe
|
title: Réunion d'information Astrolabe
|
||||||
date: '2020-06-24'
|
date: '2020-06-24'
|
||||||
time: '19:00'
|
time: '19:00'
|
||||||
|
author: 'Florent Le Saout'
|
||||||
type: 'event'
|
type: 'event'
|
||||||
illustration: '/images/reunion-24-06-2020.jpeg'
|
illustration: '/images/reunion-24-06-2020.jpeg'
|
||||||
layout: 'layouts/post.njk'
|
layout: 'layouts/post.njk'
|
||||||
|
@ -106,6 +106,12 @@
|
|||||||
padding: 0 get-size(500);
|
padding: 0 get-size(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-info {
|
||||||
|
display: inline-block;
|
||||||
|
align-self: flex-end;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
.post-pic {
|
.post-pic {
|
||||||
align-self: center;
|
align-self: center;
|
||||||
margin-bottom: 3rem;
|
margin-bottom: 3rem;
|
||||||
|
Loading…
Reference in New Issue
Block a user