diff options
author | Daan Debie <daan.debie@info.nl> | 2013-08-23 00:44:51 +0200 |
---|---|---|
committer | Daan Debie <daan.debie@info.nl> | 2013-08-23 00:44:51 +0200 |
commit | 5d9619c81b1ccccf71340aae544a66f62c103f64 (patch) | |
tree | 18600bed40dfaebc439ae2a4b48b18336989059b /pelican-bootstrap3/templates/index.html | |
parent | 543532ce68ac584ab33102adab578bf63e98ca42 (diff) | |
download | pelican-themes-5d9619c81b1ccccf71340aae544a66f62c103f64.zip pelican-themes-5d9619c81b1ccccf71340aae544a66f62c103f64.tar.gz pelican-themes-5d9619c81b1ccccf71340aae544a66f62c103f64.tar.bz2 |
Added pelican-bootstrap3 theme
Diffstat (limited to 'pelican-bootstrap3/templates/index.html')
-rw-r--r-- | pelican-bootstrap3/templates/index.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pelican-bootstrap3/templates/index.html b/pelican-bootstrap3/templates/index.html new file mode 100644 index 0000000..d948704 --- /dev/null +++ b/pelican-bootstrap3/templates/index.html @@ -0,0 +1,38 @@ +{% extends "base.html" %} +{% block content %} + {% if articles %} + {% for article in (articles_page.object_list if articles_page else articles) %} + <article> + <h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2> + <div class="summary">{{ article.summary }} + {# Uncomment if you want to show comment counts #} + {#{% include 'includes/comment_count.html' %}#} + <a class="btn btn-default btn-xs" href="{{ SITEURL }}/{{ article.url }}">more ...</a> + </div> + </article> + <hr/> + {% endfor %} + {% endif %} + + {% if articles_page and articles_paginator.num_pages > 1 %} + <ul class="pagination"> + {% if articles_page.has_previous() %} + {% set num = articles_page.previous_page_number() %} + <li class="prev"><a href="{{ SITEURL }}/{{ page_name }}{{ num if num > 1 else '' }}.html">«</a> + </li> + {% else %} + <li class="prev disabled"><a href="#">«</a></li> + {% endif %} + {% for num in range( 1, 1 + articles_paginator.num_pages ) %} + <li class="{{ 'active' if num == articles_page.number else '' }}"><a + href="{{ SITEURL }}/{{ page_name }}{{ num if num > 1 else '' }}.html">{{ num }}</a></li> + {% endfor %} + {% if articles_page.has_next() %} + <li class="next"><a + href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">»</a></li> + {% else %} + <li class="next disabled"><a href="#">«</a></li> + {% endif %} + </ul> + {% endif %} +{% endblock content %}
\ No newline at end of file |