summaryrefslogtreecommitdiff
path: root/samples/themes/notmyidea/templates/index.html
blob: 39967dc03bed83a13cc2dc3582c7e283966fa616 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{% extends "base.html" %}
{% block content %}        
{% for article in articles %}        
    {% if loop.index == 1 %}
        <aside id="featured" class="body"><article>
                <hgroup> <h2>Last article</h2> <h3><a href="{{ 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="{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">{{ article.title }}</a></h2>
                </header>
                
                <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 -->
                <div class="entry-content">
                {{ article.summary }}
                </div><!-- /.entry-content -->
        </article></li>
    {% endif %}
{% endfor %}
</ol><!-- /#posts-list -->
</section><!-- /#content -->
{% endblock content %}