mirror of
https://github.com/adulau/art.git
synced 2024-12-25 02:06: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
|
||||
|
||||
# homepage tiles
|
||||
tiles-source: posts # accepts "posts" or "pages"
|
||||
tiles-source: pages # accepts "posts" or "pages"
|
||||
tiles-count: 6
|
||||
|
||||
# social settings
|
||||
|
|
|
@ -1,28 +1,28 @@
|
|||
<section id="one" class="tiles">
|
||||
{% for post in site.posts limit:site.tiles-count %}
|
||||
{% if site.tiles-source == 'posts' %}
|
||||
<article>
|
||||
<span class="image">
|
||||
<img src="{{ post.image }}" alt="" />
|
||||
</span>
|
||||
<header class="major">
|
||||
<h3><a href="{{ post.url | relative_url }}" class="link">{{ post.title }}</a></h3>
|
||||
<p>{{ post.description }}</p>
|
||||
</header>
|
||||
</article>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for page in site.pages limit:site.tiles-count %}
|
||||
{% if site.tiles-source == 'pages' %}
|
||||
<article>
|
||||
<span class="image">
|
||||
<img src="{{ page.image }}" alt="" />
|
||||
</span>
|
||||
<header class="major">
|
||||
<h3><a href="{{ page.url | relative_url }}" class="link">{{ page.title }}</a></h3>
|
||||
<p>{{ page.description }}</p>
|
||||
</header>
|
||||
</article>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for post in site.posts limit:site.tiles-count %}
|
||||
{% if site.tiles-source == 'posts' %}
|
||||
<article>
|
||||
<span class="image">
|
||||
<img src="{{ post.image }}" alt="" />
|
||||
</span>
|
||||
<header class="major">
|
||||
<h3><a href="{{ post.url | relative_url }}" class="link">{{ post.title }}</a></h3>
|
||||
<p>{{ post.description }}</p>
|
||||
</header>
|
||||
</article>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for page in site.pages limit:site.tiles-count %}
|
||||
{% if site.tiles-source == 'pages' and page.title != 404 %}
|
||||
<article>
|
||||
<span class="image">
|
||||
<img src="{{ page.image }}" alt="" />
|
||||
</span>
|
||||
<header class="major">
|
||||
<h3><a href="{{ page.url | relative_url }}" class="link">{{ page.title }}</a></h3>
|
||||
<p>{{ page.description }}</p>
|
||||
</header>
|
||||
</article>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</section>
|
||||
|
|
|
@ -1,39 +1,41 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
Forty by HTML5 UP
|
||||
html5up.net | @ajlkn
|
||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
-->
|
||||
Forty by HTML5 UP
|
||||
html5up.net | @ajlkn
|
||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
-->
|
||||
<html>
|
||||
|
||||
{% include head.html %}
|
||||
{% include head.html %}
|
||||
|
||||
<body>
|
||||
<body>
|
||||
|
||||
{% include header.html %}
|
||||
|
||||
|
||||
<!-- Main -->
|
||||
<div id="main" class="alt">
|
||||
<!-- Main -->
|
||||
<div id="main" class="alt">
|
||||
|
||||
<!-- One -->
|
||||
<section id="one">
|
||||
<!-- One -->
|
||||
<section id="one">
|
||||
<div class="inner">
|
||||
{% for post in site.posts %}
|
||||
<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>
|
||||
{% endfor %}
|
||||
{% 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>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include footer.html %}
|
||||
|
||||
</body>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue