updated css
[monospace.git] / templates / index.html
1 {% extends "base.html" %}
2 {% block content_title %}{% endblock %}
3 {% block content %}        
4 <div id="wrap">
5 <div id="container">
6 <div class="entry">
7 {% if articles %}
8
9             <header>
10             <h1><a href="{{ SITEURL }}" id="site-title"> {# {{ SITENAME }} #} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> {#:#}</h1> 
11                 {% for article in articles_page.object_list %}
12                 <h1><a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
13                 {% if not HIDE_DATE %}<b><time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time></b>{% endif %}
14             </header>
15
16             <article>
17                 {{ article.content }}
18             </article>
19                 {% endfor %}
20 {% else %}
21     No posts found.
22 {% endif %}
23
24  {% if DEFAULT_PAGINATION %}
25         <div class="paginator">
26             {% if articles_page.has_previous() %}
27                 {% if articles_page.previous_page_number() == 1 %}
28                     <a href="{{ SITEURL }}/{{ page_name }}.html">&lt;&lt;&lt;</a>
29                 {% else %}
30                     <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html">
31                         &lt;&lt;&lt;
32                     </a>
33                 {% endif %}
34             {% endif %}
35             Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}
36             {% if articles_page.has_next() %}
37                 <a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">
38                     &gt;&gt;&gt;
39                 </a>
40             {% endif %}
41         </div>
42         {% endif %}
43
44 </div>
45 </div>
46 {% endblock content %}