diff options
Diffstat (limited to 'notmyidea-cms/templates/index.html')
-rw-r--r-- | notmyidea-cms/templates/index.html | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/notmyidea-cms/templates/index.html b/notmyidea-cms/templates/index.html index d822249..1425b5e 100644 --- a/notmyidea-cms/templates/index.html +++ b/notmyidea-cms/templates/index.html @@ -1,13 +1,13 @@ {% extends "base.html" %} {% block content_title %}{% endblock %} -{% block content %} +{% block content %} {% if articles %} -{% for article in articles %} +{% for article in articles %} {% if loop.index == 1 %} <section id="content" class="body"> <aside id="featured"><article> <h1 class="entry-title"><a href="{{ SITEURL }}/{{ article.url - }}">{{ article.title }}</a></h1> + }}">{{ article.title }}</a></h1> <footer class="post-info"> <abbr class="published" title="{{ article.date.isoformat() }}"> {{ article.date.strftime('%a %d %B %Y') }} @@ -20,6 +20,7 @@ {% endif %} <p>In <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a>. {% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">get the pdf</a>{% endif %}</p> {% include 'taglist.html' %} + {% include 'translations.html' %} </footer><!-- /.post-info --> {{ article.content }} </article></aside><!-- /#featured --> @@ -28,12 +29,12 @@ <hr /> <ol id="posts-list" class="hfeed"> {% endif %} - {% else %} - <li><article class="hentry"> + {% else %} + <li><article class="hentry"> <header> <h1><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">{{ article.title }}</a></h1> </header> - + <div class="entry-content"> <footer class="post-info"> <abbr class="published" title="{{ article.date.isoformat() }}"> @@ -56,7 +57,7 @@ </ol><!-- /#posts-list --> </section><!-- /#content --> {% else %} -<section id="content" class="body"> +<section id="content" class="body"> <h2>Pages</h2> {% for page in PAGES %} <li><a href="{{ SITEURL }}/pages/{{ page.url }}">{{ page.title }}</a></li> |