aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/all
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-09-30 14:46:26 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-09-30 14:46:26 +0300
commit72f7f01476de1715db939449b034c444207e6f11 (patch)
tree786d072cca2edc0cc2347f9752ee9d777e149302 /all
parentadd default layouts to _config.yml (diff)
downloadblog-72f7f01476de1715db939449b034c444207e6f11.tar.gz
blog-72f7f01476de1715db939449b034c444207e6f11.zip
minor markup & wording fixes
Diffstat (limited to 'all')
-rw-r--r--all/index.html27
1 files changed, 16 insertions, 11 deletions
diff --git a/all/index.html b/all/index.html
index 9188f3d..9ba7848 100644
--- a/all/index.html
+++ b/all/index.html
@@ -1,16 +1,21 @@
---
-title: Categories
+title: All posts
groups:
- navbar
-navbar_link: <span class="glyphicon glyphicon-th-list"></span>&nbsp;Categories
+navbar_link: <span class="glyphicon glyphicon-th-list"></span>&nbsp;Posts
navbar_priority: 2
---
-{% for category in site.categories %}
- <h1><a class="category" href="{{ site.baseurl }}/{{ category[0] | slugify: 'pretty' }}">{{ category[0] }}</a></h1>
- <hr>
- <ul>
- {% for post in category[1] %}
- <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.date | date: "%Y-%m-%d" }} &mdash; {{ post.title }}</a></li>
- {% endfor %}
- </ul>
-{% endfor %}
+{% if site.categories.size != 0 %}
+ {% for category in site.categories %}
+ <h1><a class="category" href="{{ site.baseurl }}/{{ category[0] | slugify: 'pretty' }}">{{ category[0] }}</a></h1>
+ <hr/>
+ <ul>
+ {% for post in category[1] %}
+ <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.date | date: "%Y-%m-%d" }} &mdash; {{ post.title }}</a></li>
+ {% endfor %}
+ </ul>
+ {% endfor %}
+{% else %}
+ <p>Sorry, no posts have been added yet.</p>
+ <hr/>
+{% endif %}