Update the theme with some changes

This commit is contained in:
Alexis Métaireau 2012-10-04 02:26:56 +02:00
parent d827f038db
commit 702166cb0f
4 changed files with 14 additions and 25 deletions

View file

@ -45,6 +45,8 @@ h3, h4, h5, h6 { margin-top: .8em; }
hr { border: 2px solid #EEEEEE; } hr { border: 2px solid #EEEEEE; }
img { border: 10px black solid; display: block; margin: 20px auto;}
/* Anchors */ /* Anchors */
a {outline: 0;} a {outline: 0;}
a img {border: 0px; text-decoration: none;} a img {border: 0px; text-decoration: none;}
@ -65,7 +67,7 @@ h1 a:hover {
} }
/* Paragraphs */ /* Paragraphs */
p {margin-bottom: 1.143em;} p {margin-bottom: 1.143em; text-align: justify}
strong, b {font-weight: bold;} strong, b {font-weight: bold;}
em, i {font-style: italic;} em, i {font-style: italic;}

View file

@ -5,7 +5,8 @@ body {
} }
.published{ .published{
float: right; display: block;
font-style: italic;
margin-bottom: 10px; margin-bottom: 10px;
} }

View file

@ -4,11 +4,8 @@
<section id="content" class="body"> <section id="content" class="body">
<article> <article>
<header> <header>
<abbr class="published" title="{{ article.date.isoformat() }}"> <h1 class="entry-title"><a href="{{ pagename }}" rel="bookmark" title="Permalink to {{ article.title }}"> {{ article.title }}</a></h1>
{{ article.locale_date }} <abbr class="published" title="{{ article.date.isoformat() }}"> {{ article.locale_date }} </abbr>
</abbr>
<h1 class="entry-title"><a href="{{ pagename }}" rel="bookmark" title="Permalink to {{ article.title }}">
{{ article.title }}</a></h1>
{% include 'twitter.html' %} </header> {% include 'twitter.html' %} </header>
<div class="entry-content"> <div class="entry-content">

View file

@ -2,28 +2,17 @@
{% block content_title %}{% endblock %} {% block content_title %}{% endblock %}
{% block content %} {% block content %}
{% if articles %} {% if articles %}
<section id="content" class="body">
<ol id="posts-list" class="hfeed">
{% for article in articles_page.object_list %} {% for article in articles_page.object_list %}
{% if loop.first and articles_page.has_previous %}
<section id="content" class="body">
<ol id="posts-list" class="hfeed" start="{{ articles_paginator.per_page -1 }}">
{% endif %}
<li><article class="hentry"> <li><article class="hentry">
<h1><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" <h1>
title="Permalink to {{ article.title}}">{{ article.title <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title}}"> {{ article.title }} </a>
}}</a></h1> {{ article.locale_date }}, in <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>. </h1> {{ article.locale_date }}, in <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>.
</div><!-- /.entry-content -->
</article></li> </article></li>
{% if loop.last and (articles_page.has_previous()
or not articles_page.has_previous() and loop.length > 1) %}
{% include 'pagination.html' %}
{% endif %}
{% if loop.last %}
</ol><!-- /#posts-list -->
</section><!-- /#content -->
{% endif %}
{% endfor %} {% endfor %}
</ol><!-- /#posts-list -->
</section><!-- /#content -->
{% else %} {% else %}
<section id="content" class="body"> <section id="content" class="body">
<h2>Pages</h2> <h2>Pages</h2>