Bugfix for 404 page showing in All Pages list

This commit is contained in:
Andrew Banchich 2018-08-05 14:35:00 -04:00
parent 2738786514
commit a6259c1274
3 changed files with 50 additions and 48 deletions

View File

@ -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

View File

@ -13,7 +13,7 @@
{% endif %}
{% endfor %}
{% for page in site.pages limit:site.tiles-count %}
{% if site.tiles-source == 'pages' %}
{% if site.tiles-source == 'pages' and page.title != 404 %}
<article>
<span class="image">
<img src="{{ page.image }}" alt="" />

View File

@ -20,12 +20,14 @@
<section id="one">
<div class="inner">
{% for post in site.posts %}
{% if post.title != 404 %}
<header class="major">
<h1>{{ post.title }}</h1>
</header>
{% if post.image %}<span class="image main"><img src="{{ site.baseurl }}/{{ post.image }}" alt="" /></span>{% endif %}
{% if post.date %}<p>{{ post.date }}</p>{% endif %}
<p>{{ post.content }}</p>
{% endif %}
{% endfor %}
</div>
</section>