diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-11-08 17:47:58 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-11-08 17:48:23 +0300 |
commit | fcb49b926c4ec4325f56de27ef7e4b5cae5bd155 (patch) | |
tree | 7b44ecb7d2ef773268785620fbf24eec5aeba3b1 | |
parent | css: misc.css -> fix_bootstrap.css (diff) | |
download | jekyll-theme-fcb49b926c4ec4325f56de27ef7e4b5cae5bd155.tar.gz jekyll-theme-fcb49b926c4ec4325f56de27ef7e4b5cae5bd155.zip |
posts: use CSS for space between category and date
-rw-r--r-- | _includes/posts/posts.html | 2 | ||||
-rw-r--r-- | _layouts/post.html | 2 | ||||
-rw-r--r-- | 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 %} <span class="glyphicon glyphicon-folder-open"></span> <a class="category" href="{{ '/' | relative_url }}{{ post.category | slugify: 'pretty' }}/">{{ post.category }}</a> {% endif %} - <span class="glyphicon glyphicon-time"></span> {{ post.date | date: '%-d %b %Y' }} + <span class="glyphicon glyphicon-time"></span> {{ post.date | date: '%-d %b %Y' }} </p> </div> </div> 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 %} <span class="glyphicon glyphicon-folder-open"></span> <a class="category" href="{{ '/' | relative_url }}{{ page.category | slugify: 'pretty' }}/">{{ page.category }}</a> {% endif %} - <span class="glyphicon glyphicon-time"></span> {{ page.date | date: '%-d %b %Y' }} + <span class="glyphicon glyphicon-time"></span> {{ page.date | date: '%-d %b %Y' }} </p> </div> </div> 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; +} |