From 4921508f085d4521c315c55653f3d8005b696afb Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 8 Apr 2021 21:48:00 +0300 Subject: _includes: add posts.html --- _includes/posts/posts.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 _includes/posts/posts.html (limited to '_includes') diff --git a/_includes/posts/posts.html b/_includes/posts/posts.html new file mode 100644 index 0000000..4f52efc --- /dev/null +++ b/_includes/posts/posts.html @@ -0,0 +1,17 @@ +{% if site.posts.size == 0 %} +

Sorry, no posts have been added yet.

+
+{% else %} + {% for post in paginator.posts %} +

{{ post.title }}

+

+  Posted on {{ post.date | date: '%-d %B %Y' }} + {%- if post.category %} in  {{ post.category }}{% endif %} +

+ {{ post.excerpt | markdownify }} +
+ {% endfor %} +
+ {% include common/paginator.html %} +
+{% endif %} -- cgit v1.2.3