aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/posts/feed.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-22 13:04:43 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-22 13:04:43 +0300
commit24332c533008456f4316347071d4183e2ef1d982 (patch)
tree822c783b4a641f3e2a6034184f7552b9a9925170 /_includes/posts/feed.html
parentREADME: update (diff)
downloadjekyll-theme-24332c533008456f4316347071d4183e2ef1d982.tar.gz
jekyll-theme-24332c533008456f4316347071d4183e2ef1d982.zip
rename some includes
Diffstat (limited to '_includes/posts/feed.html')
-rw-r--r--_includes/posts/feed.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/_includes/posts/feed.html b/_includes/posts/feed.html
new file mode 100644
index 0000000..c123ceb
--- /dev/null
+++ b/_includes/posts/feed.html
@@ -0,0 +1,23 @@
+{% if site.posts.size == 0 %}
+ <p class="h3">Sorry, no posts have been added yet.</p>
+ <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>
+ </div>
+ {{ post.excerpt | markdownify }}
+ <hr/>
+ {% endfor %}
+ <div class="text-center">
+ {% include posts/paginator.html %}
+ </div>
+{% endif %}