From 3593e7f5a1aa4ab49c1c64c4fe23d268fcca7e6f Mon Sep 17 00:00:00 2001 From: julientaq <julien@coko.foundation> Date: Fri, 7 Jan 2022 10:49:50 +0100 Subject: [PATCH] author and dates to article-single --- src/layouts/article-single.njk | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/layouts/article-single.njk b/src/layouts/article-single.njk index 077916d..0730a1d 100644 --- a/src/layouts/article-single.njk +++ b/src/layouts/article-single.njk @@ -9,16 +9,12 @@ <header> <h1>{{title}}</h1> - {% if subtitle %} - <h2>{{subtitle}}</h2> - {% endif %} + {% if subtitle %} <h2>{{subtitle}}</h2> {% endif %} + {% if author %} <h2>{{author}}</h2> {% endif %} + <p class="meta"> <time>{{date | postDate}}</time> </p> </header> <article class="post-content"> - <p class="meta"> - <time>{{date | postDate}}</time> - <span>#{{tags}}</span> - </p> {% if image %} <figure> <img src="{{image}}" alt="{{title}}"> -- GitLab