pelican/samples/themes/notmyidea/templates/index.html
Alexis Metaireau 8310ec98c4 Add some files to the output, rename generator.py to bloggenerator.py
--HG--
rename : pelican/generator.py => pelican/bloggenerator.py
2010-09-27 15:45:02 +01:00

35 lines
1.5 KiB
HTML

{% extends "base.html" %}
{% block content %}
{% block content_title %}{% endblock %}
{% for article in articles %}
{% if loop.index == 1 %}
<aside id="featured" class="body"><article>
<hgroup> <h2>Last article</h2> <h3><a href="{{ BLOGURL }}/{{ article.url }}">{{ article.title }}</a></h3> </hgroup>
{{ article.summary }}
</article></aside><!-- /#featured -->
<section id="content" class="body">
<ol id="posts-list" class="hfeed">
{% else %}
<li><article class="hentry">
<header>
<h2 class="entry-title"><a href="{{ BLOGURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">{{ article.title }}</a></h2>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="{{ article.date.isoformat() }}">
{{ article.date.strftime('%Y-%m-%d %H:%M') }}
</abbr>
<address class="vcard author">
By <a class="url fn" href="#">{{ article.author }}</a>
</address>
</footer><!-- /.post-info -->
{{ article.summary }}
</div><!-- /.entry-content -->
</article></li>
{% endif %}
{% endfor %}
</ol><!-- /#posts-list -->
</section><!-- /#content -->
{% endblock content %}