aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-08-03 19:51:03 +0200
committerDavid Runge <dave@sleepmap.de>2015-08-03 19:51:03 +0200
commit598d4d63ed3ce133c6d2df3f7d30d015f3483ae4 (patch)
tree2600e20389a662e3484cb6b543b918ef4ef62854
parentfa0ac55cfeb21b99e0aa256b88035df013c10e6a (diff)
downloadsleepmap-598d4d63ed3ce133c6d2df3f7d30d015f3483ae4.tar.gz
sleepmap-598d4d63ed3ce133c6d2df3f7d30d015f3483ae4.tar.bz2
sleepmap-598d4d63ed3ce133c6d2df3f7d30d015f3483ae4.tar.xz
sleepmap-598d4d63ed3ce133c6d2df3f7d30d015f3483ae4.zip
sleepmap-theme/templates/index.html: Adding hentry class to featured article element inside the aside element (to further streamline the design). Adding taglist to all article headers. Moving article_infos inclusion after the article content.
-rw-r--r--sleepmap-theme/templates/index.html26
1 files changed, 15 insertions, 11 deletions
diff --git a/sleepmap-theme/templates/index.html b/sleepmap-theme/templates/index.html
index 5e1e676..18cde9c 100644
--- a/sleepmap-theme/templates/index.html
+++ b/sleepmap-theme/templates/index.html
@@ -5,28 +5,32 @@
{% 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>
- {% include 'article_infos.html' %}<!-- /.post-info -->
+ <aside id="featured">
+ <article class="hentry">
+ <header>
+ <h1 class="entry-title">
+ <a href="{{ SITEURL }}/{{ article.url}}">{{ article.title }}</a>
+ </h1>
+ {% include 'taglist.html' %}
+ </header>
{{ article.content }}
- </article></aside><!-- /#featured -->
+ {% include 'article_infos.html' %}<!-- /.post-info -->
+ </article>
+ </aside><!-- /#featured -->
{% if loop.length > 1 %}
- <h1>Other articles</h1>
- <hr />
<ol id="posts-list" class="hfeed">
{% endif %}
{% else %}
<li><article class="hentry">
<header>
<h1><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h1>
+ {% include 'taglist.html' %}
</header>
-
<div class="entry-content">
- {% include 'article_infos.html' %}<!-- /.post-info -->
- {{ article.summary }}
- <a class="readmore" href="{{ SITEURL }}/{{ article.url }}">read more</a>
+ {{ article.summary }}
+ <a class="readmore" href="{{ SITEURL }}/{{ article.url }}">read more</a>
</div><!-- /.entry-content -->
+ {% include 'article_infos.html' %}<!-- /.post-info -->
</article></li>
{% endif %}
{% endfor %}