mirror of
https://github.com/adulau/art.git
synced 2024-11-22 01:57:06 +00:00
Bugfix for 404 page showing in All Pages list
This commit is contained in:
parent
2738786514
commit
a6259c1274
3 changed files with 50 additions and 48 deletions
|
@ -14,7 +14,7 @@ country: United States of America
|
||||||
phone: (716) 555-5555
|
phone: (716) 555-5555
|
||||||
|
|
||||||
# homepage tiles
|
# homepage tiles
|
||||||
tiles-source: posts # accepts "posts" or "pages"
|
tiles-source: pages # accepts "posts" or "pages"
|
||||||
tiles-count: 6
|
tiles-count: 6
|
||||||
|
|
||||||
# social settings
|
# social settings
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for page in site.pages limit:site.tiles-count %}
|
{% for page in site.pages limit:site.tiles-count %}
|
||||||
{% if site.tiles-source == 'pages' %}
|
{% if site.tiles-source == 'pages' and page.title != 404 %}
|
||||||
<article>
|
<article>
|
||||||
<span class="image">
|
<span class="image">
|
||||||
<img src="{{ page.image }}" alt="" />
|
<img src="{{ page.image }}" alt="" />
|
||||||
|
|
|
@ -3,37 +3,39 @@
|
||||||
Forty by HTML5 UP
|
Forty by HTML5 UP
|
||||||
html5up.net | @ajlkn
|
html5up.net | @ajlkn
|
||||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||||
-->
|
-->
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
{% include head.html %}
|
{% include head.html %}
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
{% include header.html %}
|
{% include header.html %}
|
||||||
|
|
||||||
|
|
||||||
<!-- Main -->
|
<!-- Main -->
|
||||||
<div id="main" class="alt">
|
<div id="main" class="alt">
|
||||||
|
|
||||||
<!-- One -->
|
<!-- One -->
|
||||||
<section id="one">
|
<section id="one">
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
|
{% if post.title != 404 %}
|
||||||
<header class="major">
|
<header class="major">
|
||||||
<h1>{{ post.title }}</h1>
|
<h1>{{ post.title }}</h1>
|
||||||
</header>
|
</header>
|
||||||
{% if post.image %}<span class="image main"><img src="{{ site.baseurl }}/{{ post.image }}" alt="" /></span>{% endif %}
|
{% if post.image %}<span class="image main"><img src="{{ site.baseurl }}/{{ post.image }}" alt="" /></span>{% endif %}
|
||||||
{% if post.date %}<p>{{ post.date }}</p>{% endif %}
|
{% if post.date %}<p>{{ post.date }}</p>{% endif %}
|
||||||
<p>{{ post.content }}</p>
|
<p>{{ post.content }}</p>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% include footer.html %}
|
{% include footer.html %}
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue