diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-09-30 14:46:26 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-09-30 14:46:26 +0300 |
commit | 72f7f01476de1715db939449b034c444207e6f11 (patch) | |
tree | 786d072cca2edc0cc2347f9752ee9d777e149302 /all/index.html | |
parent | add default layouts to _config.yml (diff) | |
download | blog-72f7f01476de1715db939449b034c444207e6f11.tar.gz blog-72f7f01476de1715db939449b034c444207e6f11.zip |
minor markup & wording fixes
Diffstat (limited to '')
-rw-r--r-- | all/index.html | 27 |
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> Categories +navbar_link: <span class="glyphicon glyphicon-th-list"></span> 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" }} — {{ 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" }} — {{ post.title }}</a></li> + {% endfor %} + </ul> + {% endfor %} +{% else %} + <p>Sorry, no posts have been added yet.</p> + <hr/> +{% endif %} |