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

46 lines
1.7 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 %}
{% if loop.index == 1 %}
<aside id="featured" class="body"><article>
2010-10-31 15:00:45 +00:00
<h1 class="entry-title"><a href="{{ SITEURL }}/{{ article.url
}}">{{ article.title }}</a></h1>
{% include 'article_infos.html' %}
{{ article.content }}
2010-12-19 03:34:19 +00:00
{% include 'comments.html' %}
</article>
</aside><!-- /#featured -->
{% if loop.length > 1 %}
<section id="content" class="body">
2010-12-10 19:37:32 +01:00
<h1>Other articles</h1>
<hr />
<ol id="posts-list" class="hfeed">
{% endif %}
{% else %}
<li><article class="hentry">
<header>
2010-10-31 15:00:45 +00:00
<h1><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}">{{ 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 -->
</article></li>
{% endif %}
{% endfor %}
</ol><!-- /#posts-list -->
</section><!-- /#content -->
2010-11-05 02:05:00 +00:00
{% else %}
<section id="content" class="body">
<h2>Pages</h2>
{% for page in PAGES %}
<li><a href="{{ SITEURL }}/pages/{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
</section>
{% endif %}
{% endblock content %}