From 783d46cb829de85eb31f042aefeabcb0ee831afb Mon Sep 17 00:00:00 2001 From: Yves Gatesoupe Date: Wed, 15 Jul 2020 23:29:29 +0200 Subject: [PATCH] added post infos --- src/_includes/layouts/post.njk | 3 +++ src/posts/evenement-24-06-20.md | 1 + src/scss/components/_post.scss | 6 ++++++ 3 files changed, 10 insertions(+) diff --git a/src/_includes/layouts/post.njk b/src/_includes/layouts/post.njk index 39b9b8b..6983693 100644 --- a/src/_includes/layouts/post.njk +++ b/src/_includes/layouts/post.njk @@ -5,6 +5,9 @@

{{ title }}

+ {% if illustration %} illustration de l'article {% endif %} diff --git a/src/posts/evenement-24-06-20.md b/src/posts/evenement-24-06-20.md index f7cca05..2798af4 100644 --- a/src/posts/evenement-24-06-20.md +++ b/src/posts/evenement-24-06-20.md @@ -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' diff --git a/src/scss/components/_post.scss b/src/scss/components/_post.scss index b80555d..ca58b25 100644 --- a/src/scss/components/_post.scss +++ b/src/scss/components/_post.scss @@ -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;