diff options
author | maxlambertini <m.lambertini@gmail.com> | 2015-10-26 15:24:34 +0100 |
---|---|---|
committer | Justin Mayer <entroP@gmail.com> | 2015-10-27 13:10:27 -0700 |
commit | 9c87d63f70970aee390ad0c8b2623b27b4d94f15 (patch) | |
tree | 2c43a8817de6c7765b3fdb61d437cb29abc17791 /bricks/templates/index.html | |
parent | 10f51d8bb763fc6edd2ecd32c695d3529b01c93e (diff) | |
download | pelican-themes-9c87d63f70970aee390ad0c8b2623b27b4d94f15.tar.gz |
Add Bricks theme
Diffstat (limited to 'bricks/templates/index.html')
-rw-r--r-- | bricks/templates/index.html | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/bricks/templates/index.html b/bricks/templates/index.html new file mode 100644 index 0000000..e0c9b59 --- /dev/null +++ b/bricks/templates/index.html @@ -0,0 +1,66 @@ +{% extends "base.html" %} +{% 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 --> |