added Just Read theme
This commit is contained in:
26
Just-Read/templates/index.html
Normal file
26
Just-Read/templates/index.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content_title %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div role="main" class="content clearfix">
|
||||
{% for article in articles %}
|
||||
|
||||
{% if loop.index == 1 %}
|
||||
<article class="wrapper main">
|
||||
<h1><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>
|
||||
{{ article.summary }} <a class="more" href="{{ SITEURL }}/{{ article.url }}">read more</a>
|
||||
</article>
|
||||
|
||||
{% if loop.length > 1 %}
|
||||
<div class="wrapper main">
|
||||
<h3>More posts</h3>
|
||||
<ol class="archive">
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<li class="clearfix"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}"><time datetime="{{ article.date.isoformat() }}" pubdate>{{ article.locale_date }}</time> {{ article.title }}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
Reference in New Issue
Block a user