summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-07-26 00:28:58 -0400
committerDrew DeVault <sir@cmpwn.com>2019-07-26 14:44:58 -0400
commitf1e3f2c3cb3b7543182a35253475c038bfb5226b (patch)
treed3947332ce0bdab702f6292e5e7fbaea2629ba81
parenta05146756ef31494a53b5dc53b4312c235413eb9 (diff)
Add archive.html as an index of all posts (without pagination)
-rw-r--r--_includes/post-stub.html2
-rw-r--r--all.html11
2 files changed, 12 insertions, 1 deletions
diff --git a/_includes/post-stub.html b/_includes/post-stub.html
index 6cb2ed2..d9ace7c 100644
--- a/_includes/post-stub.html
+++ b/_includes/post-stub.html
@@ -14,7 +14,7 @@
{% endif %}
</span>
</h2>
- {% if include.post._url %}
+ {% if include.post._url or include.no_excerpt %}
{% else %}
{{ include.post.excerpt }}
{% endif %}
diff --git a/all.html b/all.html
new file mode 100644
index 0000000..5ae0cf7
--- /dev/null
+++ b/all.html
@@ -0,0 +1,11 @@
+---
+layout: page
+title: Archive
+---
+
+<div class="media">
+ {% for post in site.posts %}
+ {% include post-stub.html post=post no_excerpt=true %}
+ {% endfor %}
+</div>
+<div class="clearfix"></div>