aboutsummaryrefslogblamecommitdiffstats
path: root/nmnlist/templates/index.html
blob: ab83db43764b942a7e16ca6cdcbad98a53e6e1b5 (plain) (tree)























                                                                                                                                                                                 
                                                                                                                                                        
                   




                                            



                                  
{% extends "base.html" %}
{% block content_title %}{% endblock %}
{% block content %}        
{% if articles %}
    {% for article in articles %}        

        {# First item #}
        {% if loop.first %}
            <header>
                <h1><a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
                <span id="sitename"><a href="{{ SITEURL }}" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> &sdot;</span>
                {% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %}
            </header>

            <article>
                {{ article.content }}{% include 'comments.html' %}
            </article>
            {% if loop.length > 1 %}
                <section id="article-list">
                    <h2>Tous les articles</h2>
                    <ol>
            {% endif %}
        {# other items #}
        {% else %} 
            <li><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></li>
        {% endif %}
        {% if loop.length > 1 %}
            </ol>
            </section><!-- #article-list -->
        {% endif %}
    {% endfor %}
{% else %}
    Pas d'articles pour le moment.
{% endif %}
{% endblock content %}