From a6259c1274127236bf8a70a4c54484ad5d6c0cdc Mon Sep 17 00:00:00 2001 From: Andrew Banchich Date: Sun, 5 Aug 2018 14:35:00 -0400 Subject: [PATCH] Bugfix for 404 page showing in All Pages list --- _config.yml | 2 +- _includes/tiles.html | 52 +++++++++++++++++++++--------------------- _layouts/allposts.html | 44 ++++++++++++++++++----------------- 3 files changed, 50 insertions(+), 48 deletions(-) diff --git a/_config.yml b/_config.yml index 1fa88d1..59c0614 100644 --- a/_config.yml +++ b/_config.yml @@ -14,7 +14,7 @@ country: United States of America phone: (716) 555-5555 # homepage tiles -tiles-source: posts # accepts "posts" or "pages" +tiles-source: pages # accepts "posts" or "pages" tiles-count: 6 # social settings diff --git a/_includes/tiles.html b/_includes/tiles.html index 080cc0a..d9a0524 100644 --- a/_includes/tiles.html +++ b/_includes/tiles.html @@ -1,28 +1,28 @@
- {% for post in site.posts limit:site.tiles-count %} - {% if site.tiles-source == 'posts' %} - - {% endif %} - {% endfor %} - {% for page in site.pages limit:site.tiles-count %} - {% if site.tiles-source == 'pages' %} - - {% endif %} - {% endfor %} + {% for post in site.posts limit:site.tiles-count %} + {% if site.tiles-source == 'posts' %} + + {% endif %} + {% endfor %} + {% for page in site.pages limit:site.tiles-count %} + {% if site.tiles-source == 'pages' and page.title != 404 %} + + {% endif %} + {% endfor %}
diff --git a/_layouts/allposts.html b/_layouts/allposts.html index b4c570c..0bd6e24 100644 --- a/_layouts/allposts.html +++ b/_layouts/allposts.html @@ -1,39 +1,41 @@ + Forty by HTML5 UP + html5up.net | @ajlkn + Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) + --> -{% include head.html %} + {% include head.html %} - + {% include header.html %} - -
+ +
- -
+ +
- {% for post in site.posts %} -
-

{{ post.title }}

-
- {% if post.image %}{% endif %} - {% if post.date %}

{{ post.date }}

{% endif %} -

{{ post.content }}

- {% endfor %} + {% for post in site.posts %} + {% if post.title != 404 %} +
+

{{ post.title }}

+
+ {% if post.image %}{% endif %} + {% if post.date %}

{{ post.date }}

{% endif %} +

{{ post.content }}

+ {% endif %} + {% endfor %}
-
+
-
+
{% include footer.html %} - +