From fcb49b926c4ec4325f56de27ef7e4b5cae5bd155 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 8 Nov 2021 17:47:58 +0300 Subject: posts: use CSS for space between category and date --- _includes/posts/posts.html | 2 +- _layouts/post.html | 2 +- assets/css/common/posts.css | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/_includes/posts/posts.html b/_includes/posts/posts.html index d5c5c9d..c123ceb 100644 --- a/_includes/posts/posts.html +++ b/_includes/posts/posts.html @@ -10,7 +10,7 @@ {% if post.category %}  {{ post.category }} {% endif %} -   {{ post.date | date: '%-d %b %Y' }} +  {{ post.date | date: '%-d %b %Y' }}

diff --git a/_layouts/post.html b/_layouts/post.html index 2c0122e..133a95b 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -8,7 +8,7 @@ layout: default {% if page.category %}  {{ page.category }} {% endif %} -   {{ page.date | date: '%-d %b %Y' }} +  {{ page.date | date: '%-d %b %Y' }}

diff --git a/assets/css/common/posts.css b/assets/css/common/posts.css index f3e0532..d9ee811 100644 --- a/assets/css/common/posts.css +++ b/assets/css/common/posts.css @@ -10,3 +10,6 @@ .post-date { text-align: right; } +.post-date a.category { + margin-right: .5em; +} -- cgit v1.2.3