diff options
author | m-r-r <raybaudroigm@gmail.com> | 2012-04-07 19:36:03 +0200 |
---|---|---|
committer | m-r-r <raybaudroigm@gmail.com> | 2012-04-07 19:36:03 +0200 |
commit | 261797ff47d96c47c3364110c100bf64701f7da5 (patch) | |
tree | 3242dd2ba40c67387cd5ac646d7831522eaad86b /dev-random/templates/index.html | |
parent | a006f0a70f9e432908d97bd9ecdb37e4b8f5d328 (diff) | |
download | pelican-themes-261797ff47d96c47c3364110c100bf64701f7da5.tar.gz |
Added the dev-random theme
Diffstat (limited to 'dev-random/templates/index.html')
-rw-r--r-- | dev-random/templates/index.html | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/dev-random/templates/index.html b/dev-random/templates/index.html new file mode 100644 index 0000000..ad01608 --- /dev/null +++ b/dev-random/templates/index.html @@ -0,0 +1,64 @@ +{% extends "base.html" %} + +{%- block content %} + <section id="page-content"> + <h1 id="page-title">{% block index_title %}Tous les articles{% endblock index_title %}</h1> + + {% for article in articles_page.object_list %} + <article class="post"> + <header class="post-header"> + <time datetime="{{ article.date.isoformat() }}" pubdate="pubdate"> + {{ article.locale_date }} + </time> + <h1> + <a rel="bookmark" + href="{{ SITEURL }}/{{ article.url }}" + title="Lien permanent vers «{{ article.title }}»"> + {{ article.title }} + </a> + </h1> + <div class="meta"> + Dans «<a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>» + par <a href="{{ SITEURL }}/author/{{article.author}}.html">{{ article.author}}</a> + </div> + </header> + <div class="post-content"> + {{ article.summary }} + </div> + <footer class="post-footer"> + <a class="readmore" href="{{ SITEURL }}/{{ article.url }}">Lire la suite...</a> + </footer> + </article> + {% endfor %} + + {%- if articles_page %} + <nav id="pagination"> + {%- if articles_page.has_previous() %} + <a id="first_page" href="{{ SITEURL }}/{{ page_name }}.html"><<</a> + <a id="prev_page" href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() if articles_page.previous_page_number() != 1 else "" }}.html"><</a> + {% else %} + <!-- <span id="first_page" class="a inactive"><<</span> + <span id="first_page" class="a inactive"><</span> --> + {% endif -%} + + {%- for i in range(1,articles_paginator.num_pages+1) %} + {%- if articles_page.number - 5 < i < articles_page.number + 5 %} + {%- if i == articles_page.number %} + <span class="a active">{{loop.index}}</span> + {% else %} + <a href="{{SITEURL}}/{{ page_name }}{{ ( i if i != 1 else "" ) }}.html">{{loop.index}}</a> + {% endif -%} + {% endif -%} + {% endfor -%} + + {%- if articles_page.has_next() %} + <a id="next_page" href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">></a> + <a id="last_page" href="{{ SITEURL }}/{{ page_name }}{{ articles_paginator.num_pages }}.html">>></a> + {% else %} + <!-- <span id="next_page" class="a inactive">></span> + <span id="next_page" class="a inactive">>></span> --> + {% endif -%} + </nav> + {%- endif%} + </section> +{% endblock content -%} |