Skip to content

Commit

Permalink
No post found message
Browse files Browse the repository at this point in the history
  • Loading branch information
hanju-jo committed Oct 6, 2017
1 parent 3c96e5b commit e69d072
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
7 changes: 4 additions & 3 deletions archive/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
permalink: /archive/
---

{% if site.posts.size == 0 %}
<h2>No post found</h2>
{% endif %}

<ul class="archive-list">
{% if site.posts.size == 0 %}
<h2>No post found</h2>
{% endif %}
{% for post in site.posts %}
{% unless post.next %}
<h3>{{ post.date | date: '%Y' }}</h3>
Expand Down
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
layout: default
---

{% if site.posts.size == 0 %}
<h2>No post found</h2>
{% endif %}

<div class="posts">
{% for post in site.posts %}
<article class="post">
Expand Down
4 changes: 4 additions & 0 deletions tags/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
permalink: /tags/
---

{% if site.posts.size == 0 %}
<h2>No post found</h2>
{% endif %}

<div class="tag-index">
<ul>
{% for tag in site.tags %}
Expand Down

0 comments on commit e69d072

Please sign in to comment.