From 1e0e75af18625e1d22f6462533c64bebb4e45e8d Mon Sep 17 00:00:00 2001 From: Vakho Date: Tue, 28 Jan 2025 13:30:56 +0400 Subject: [PATCH] Add other posts page --- .idea/vcs.xml | 1 + index.html | 7 ++++++- posts.html | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 posts.html diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 6c0b863..288b36b 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -2,5 +2,6 @@ + \ No newline at end of file diff --git a/index.html b/index.html index 9d13166..0bfb8ac 100644 --- a/index.html +++ b/index.html @@ -31,7 +31,7 @@

Other Posts

{% for post in site.posts %} - {% unless post.categories contains "points" %} + {% unless post.categories contains "points" limit:5 %}
@@ -56,4 +56,9 @@
{% endunless %} {% endfor %} +
\ No newline at end of file diff --git a/posts.html b/posts.html new file mode 100644 index 0000000..5297a59 --- /dev/null +++ b/posts.html @@ -0,0 +1,32 @@ +--- +layout: page +title: "Other Posts" +--- +
+ {% for post in site.posts %} + {% unless post.categories contains "points"%} +
+
+
+
+

{{ post.title }}

+
{{ post.date | date: "%B %d, %Y" }}
+
+ Categories: +
+ {% for category in post.categories %} + {{ category }} + {% endfor %} +
+
+
{{ post.excerpt }}
+ + Read more » + +
+
+
+
+ {% endunless %} + {% endfor %} +
\ No newline at end of file