added post infos

This commit is contained in:
Yves Gatesoupe 2020-07-15 23:29:29 +02:00
parent ef05bccd26
commit 783d46cb82
3 changed files with 10 additions and 0 deletions

View File

@ -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 %}

View File

@ -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'

View File

@ -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;