theme/templates/index.html

Sat, 24 Mar 2018 01:43:02 +0100

author
David Douard <david.douard@logilab.fr>
date
Sat, 24 Mar 2018 01:43:02 +0100
changeset 92
ce8a1de27226
parent 36
9507107a1133
permissions
-rw-r--r--

[hp8662a] new series on the HP 8662A generator

{% extends "base.html" %}

{% block sidecontent %}
<h3>Recent articles</h3>
<ol class="parts">
   
{% set cnt = 0 %}
{% for article in articles_page.object_list %}
{% if cnt < 3 %}
            <li>
              <a href='{{ SITEURL }}/{{ article.url }}'>{{ article.title }}</a>
            </li>

{% endif %}	    
{% set cnt = cnt +1 %}
{% endfor %}	    
</ol>
<a href="{{ SITEURL }}/archives.html">All articles...</a>
{% endblock %}

{% block content %}

{% block content_title %}
{% endblock %}


{% set cnt = 0 %}
{% for article in articles_page.object_list %}
    {% if cnt < 2 %}
        {% if articles_page.has_previous() %}
            <!-- pagine successive -->
            {% if cnt == 0 %}
            <ul class="medium-block-grid-2">
            {% endif %}
            <li>
            <div class="sec-article">
                 <div class="read-more">{{ article.locale_date}}</div>
                 <h3><a href="{{ SITEURL }}/{{ article.url }}" rel=Bookmark title="Permalink to {{ article.title | striptags }}">{{ article.title }}</a></h3>
                <p>
                {{ article.summary }}            
                </p>
                
            </div>
            </li>

        {% else %}
            <!-- prima pagina -->
            <div class="main-article">
                <div class="read-more">{{ article.locale_date}}</div>
 
                <h2><a href="{{ SITEURL }}/{{ article.url }}" rel=Bookmark title="Permalink to {{ article.title | striptags }}">{{ article.title }}</a></h2>
                <p>
                {{ article.summary }}            
                </p>
                   

            </div>
            {% if cnt == 1 %}
            <ul class="medium-block-grid-2">
            {% endif %}
        {% endif %}
    {% else %}
        <li>
        <div class="sec-article">
             <div class="read-more">{{ article.locale_date}}</div>
             <h3><a href="{{ SITEURL }}/{{ article.url }}" rel=Bookmark title="Permalink to {{ article.title | striptags }}">{{ article.title }}</a></h3>
            <p>
            {{ article.summary }}            
            </p>
            
        </div>
        </li>
    {% endif %}    
    {% set cnt = cnt +1 %}
{% endfor %}
</ul>
{% if articles_page.has_other_pages() %}
<div class="pagination-block">
    {% include 'pagination.html' %}
</div>
{% endif %}

{% endblock content %}
<!-- END CONTENT -->

mercurial