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