1
0
Fork 0
forked from github/pelican
pelican-theme/pelican/themes/notmyidea/templates/index.html

59 lines
2.3 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
{% block content_title %}{% endblock %}
{% block content %}
2010-11-05 02:05:00 +00:00
{% if articles %}
{% for article in articles_page.object_list %}
2011-02-17 19:03:23 +00:00
{# First item #}
{% if loop.first and not articles_page.has_previous() %}
<aside id="featured" class="body">
<article>
<h1 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>
2011-02-17 19:03:23 +00:00
{% include 'article_infos.html' %}{{ article.content }}{% include 'comments.html' %}
2010-12-19 03:34:19 +00:00
</article>
2011-02-17 19:03:23 +00:00
</aside><!-- /#featured -->
{% if loop.length > 1 %}
<section id="content" class="body">
<h1>Other articles</h1>
<hr />
2012-03-30 14:20:55 +02:00
<ol id="posts-list" class="hfeed">
2011-02-17 19:03:23 +00:00
{% endif %}
{# other items #}
{% else %}
{% if loop.first %}
2011-02-17 19:03:23 +00:00
<section id="content" class="body">
<ol id="posts-list" class="hfeed" start="{{ articles_paginator.per_page -1 }}">
{% endif %}
<li><article class="hentry">
<header>
<h1><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h1>
</header>
<div class="entry-content">
{% include 'article_infos.html' %}
{{ article.summary }}
<a class="readmore" href="{{ SITEURL }}/{{ article.url }}">read more</a>
2010-12-19 03:34:19 +00:00
{% include 'comments.html' %}
</div><!-- /.entry-content -->
2011-02-17 19:03:23 +00:00
</article></li>
{% endif %}
2012-03-30 14:20:55 +02:00
{% if loop.last %}
{% if loop.length > 1 or articles_page.has_other_pages() %}
</ol><!-- /#posts-list -->
{% if articles_page.has_other_pages() %}
{% include 'pagination.html' %}
{% endif %}
</section><!-- /#content -->
{% endif %}
2012-03-30 14:20:55 +02:00
{% endif %}
{% endfor %}
2010-11-05 02:05:00 +00:00
{% else %}
<section id="content" class="body">
2010-11-05 02:05:00 +00:00
<h2>Pages</h2>
2012-03-30 14:20:55 +02:00
{% for page in PAGES %}
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
2010-11-05 02:05:00 +00:00
</section>
{% endif %}
{% endblock content %}