aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-11-08 17:47:58 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-11-08 17:48:23 +0300
commitfcb49b926c4ec4325f56de27ef7e4b5cae5bd155 (patch)
tree7b44ecb7d2ef773268785620fbf24eec5aeba3b1
parentcss: misc.css -> fix_bootstrap.css (diff)
downloadjekyll-theme-fcb49b926c4ec4325f56de27ef7e4b5cae5bd155.tar.gz
jekyll-theme-fcb49b926c4ec4325f56de27ef7e4b5cae5bd155.zip
posts: use CSS for space between category and date
-rw-r--r--_includes/posts/posts.html2
-rw-r--r--_layouts/post.html2
-rw-r--r--assets/css/common/posts.css3
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>&nbsp;<a class="category" href="{{ '/' | relative_url }}{{ post.category | slugify: 'pretty' }}/">{{ post.category }}</a>
{% endif %}
- &nbsp;<span class="glyphicon glyphicon-time"></span>&nbsp;{{ post.date | date: '%-d&nbsp;%b&nbsp;%Y' }}
+ <span class="glyphicon glyphicon-time"></span>&nbsp;{{ post.date | date: '%-d&nbsp;%b&nbsp;%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>&nbsp;<a class="category" href="{{ '/' | relative_url }}{{ page.category | slugify: 'pretty' }}/">{{ page.category }}</a>
{% endif %}
- &nbsp;<span class="glyphicon glyphicon-time"></span>&nbsp;{{ page.date | date: '%-d&nbsp;%b&nbsp;%Y' }}
+ <span class="glyphicon glyphicon-time"></span>&nbsp;{{ page.date | date: '%-d&nbsp;%b&nbsp;%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;
+}