diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-05-30 04:01:16 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-05-30 04:01:16 +0300 |
commit | b0284c6eef0089d2a9bf861196bcd7c81cb4000b (patch) | |
tree | 2a72a47a547ac216245fda4fe12b930fa419a0e2 /posts/index.html | |
parent | fix links, page titles & icons (diff) | |
download | sorting-algorithms-b0284c6eef0089d2a9bf861196bcd7c81cb4000b.tar.gz sorting-algorithms-b0284c6eef0089d2a9bf861196bcd7c81cb4000b.zip |
pagination doesn't work on anything but index.html
Diffstat (limited to 'posts/index.html')
-rw-r--r-- | posts/index.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/posts/index.html b/posts/index.html new file mode 100644 index 0000000..14cc004 --- /dev/null +++ b/posts/index.html @@ -0,0 +1,22 @@ +--- +title: Posts +layout: sidebar +groups: + - navbar +navbar_link: <span class="glyphicon glyphicon-th-list"></span> Posts +--- +{% if site.posts.size == 0 %} + <p class="h3">Sorry, no posts have been added yet.</p> + <p class="text-muted">But I've made quite a few <a href="{{ site.baseurl }}/index.html">plots</a> which you might want to check out.</p> + <hr/> +{% else %} + {% for post in paginator.posts %} + <h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2> + <p class="text-muted"><span class="glyphicon glyphicon-time"></span> Posted on {{ post.date | date_to_long_string }}</p> + <p>{{ post.excerpt }}</p> + <hr/> + {% endfor %} + <div class="text-center"> + {% include common/pagination.html %} + </div> +{% endif %} |