aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-22 21:37:35 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-22 21:38:14 +0300
commiteffa305b1e64d7fb081fc9eafd2ba7f9d0840699 (patch)
treec7e33fb55ed443e2578be46179a533234beabbb4
parentremove <hr> tags where unnecessary (diff)
downloadjekyll-theme-effa305b1e64d7fb081fc9eafd2ba7f9d0840699.tar.gz
jekyll-theme-effa305b1e64d7fb081fc9eafd2ba7f9d0840699.zip
posts: separate feed entries with border
It's not as intrusive as <hr>, but still serves its role.
Diffstat (limited to '')
-rw-r--r--_includes/posts/feed.html22
-rw-r--r--assets/css/jekyll-theme/posts.css5
2 files changed, 17 insertions, 10 deletions
diff --git a/_includes/posts/feed.html b/_includes/posts/feed.html
index b273b5a..14cc41e 100644
--- a/_includes/posts/feed.html
+++ b/_includes/posts/feed.html
@@ -3,18 +3,20 @@
<hr/>
{% else %}
{% for post in paginator.posts %}
- <div class="post-header">
- <h2><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2>
- <div class="post-date">
- <p class="text-muted">
- {% 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 %}
- <span class="glyphicon glyphicon-time"></span>&nbsp;{{ post.date | date: '%-d&nbsp;%b&nbsp;%Y' }}
- </p>
+ <div class="post-entry">
+ <div class="post-header">
+ <h2><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2>
+ <div class="post-date">
+ <p class="text-muted">
+ {% 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 %}
+ <span class="glyphicon glyphicon-time"></span>&nbsp;{{ post.date | date: '%-d&nbsp;%b&nbsp;%Y' }}
+ </p>
+ </div>
</div>
+ {{ post.excerpt | markdownify }}
</div>
- {{ post.excerpt | markdownify }}
{% endfor %}
<div class="text-center">
{% include posts/paginator.html %}
diff --git a/assets/css/jekyll-theme/posts.css b/assets/css/jekyll-theme/posts.css
index d9ee811..c35fc11 100644
--- a/assets/css/jekyll-theme/posts.css
+++ b/assets/css/jekyll-theme/posts.css
@@ -13,3 +13,8 @@
.post-date a.category {
margin-right: .5em;
}
+
+.post-entry {
+ /* The color of <hr>. */
+ border-bottom: 1px solid #eee;
+}