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/home.html | 46 ----------------------------------------------
_layouts/postlist.html | 46 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 46 insertions(+), 46 deletions(-)
delete mode 100644 _layouts/home.html
create mode 100644 _layouts/postlist.html
(limited to '_layouts')
diff --git a/_layouts/home.html b/_layouts/home.html
deleted file mode 100644
index dd4796e..0000000
--- a/_layouts/home.html
+++ /dev/null
@@ -1,46 +0,0 @@
----
-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 -%}
-
-
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