From dfc78c1bf0215fd693e931a17ffde0c1364c117f Mon Sep 17 00:00:00 2001
From: uvok cheetah
Date: Thu, 9 Jan 2020 20:26:40 +0100
Subject: Generate autopages for categories + rename home layout
---
_layouts/postlist.html | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
create mode 100644 _layouts/postlist.html
(limited to '_layouts/postlist.html')
diff --git a/_layouts/postlist.html b/_layouts/postlist.html
new file mode 100644
index 0000000..dd4796e
--- /dev/null
+++ b/_layouts/postlist.html
@@ -0,0 +1,46 @@
+---
+layout: default
+---
+
+
+ {%- if page.title -%}
+
{{ page.title }}
+ {%- endif -%}
+
+ {{ content }}
+
+ {%- if site.posts.size > 0 -%}
+
+ {% include pagetrail.html %}
+
+
{{ page.list_title }}
+
+ {% if paginator == nil %}
+ {% assign paginator = site %}
+ {% endif %}
+
+ {%- for post in paginator.posts -%}
+
+ -
+ {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
+ {{ post.date | date: date_format }}
+
+ {%- if site.show_excerpts -%}
+ {{ post.excerpt }}
+ {# parens are invalid, right-to-left eval #}
+ {%- elsif forloop.first and paginator.page == 1 or paginator == site -%}
+ {{ post.content }}
+ {%- endif -%}
+
+ {%- endfor -%}
+
+
+ {% include pagetrail.html %}
+
+ {%- endif -%}
+
+
--
cgit v1.2.3