aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3/templates/index.html
diff options
context:
space:
mode:
authorJustin Mayer <entroP@gmail.com>2013-09-12 23:09:49 -0700
committerJustin Mayer <entroP@gmail.com>2013-09-12 23:09:49 -0700
commita217f4239e87d4d17c518e0ecdb7cd20a6752f12 (patch)
treed105653aace2d690f01eea6d8eae2ce36341d3ec /pelican-bootstrap3/templates/index.html
parentb062b010425416601f9b623136d42cb88db09dc5 (diff)
parent8fc2dfd7e8fe863b9536f7b78a78856b97ed22b6 (diff)
downloadpelican-themes-a217f4239e87d4d17c518e0ecdb7cd20a6752f12.tar.gz
Merge pull request #127 from DandyDev/master
Added pelican-bootstrap3 theme
Diffstat (limited to 'pelican-bootstrap3/templates/index.html')
-rw-r--r--pelican-bootstrap3/templates/index.html38
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">&laquo;</a>
+ </li>
+ {% else %}
+ <li class="prev disabled"><a href="#">&laquo;</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">&raquo;</a></li>
+ {% else %}
+ <li class="next disabled"><a href="#">&laquo;</a></li>
+ {% endif %}
+ </ul>
+ {% endif %}
+{% endblock content %} \ No newline at end of file