Updated style

This commit is contained in:
Luca Chiricozzi 2015-01-09 20:28:34 +01:00
parent 38dd4aa125
commit 61a124ad23
4 changed files with 29 additions and 10 deletions

View File

@ -173,6 +173,14 @@ a {
} }
} }
.mg-list-title {
font-size: 2em;
line-height: 42px;
font-weight: 400;
text-transform: none;
margin-top: 0.5em;
}
.mg-footer { .mg-footer {
margin-bottom: 1em; margin-bottom: 1em;
} }

View File

@ -103,6 +103,13 @@ a {
text-decoration: none; text-decoration: none;
color: #FF6600; } color: #FF6600; }
.mg-list-title {
font-size: 2em;
line-height: 42px;
font-weight: 400;
text-transform: none;
margin-top: 0.5em; }
.mg-footer { .mg-footer {
margin-bottom: 1em; } margin-bottom: 1em; }

View File

@ -9,13 +9,13 @@
<h1 class="uk-heading-large">Archives</h1> <h1 class="uk-heading-large">Archives</h1>
{% for article in dates %} {% for article in dates %}
<article class="uk-article" itemtype="http://schema.org/BlogPosting" itemscope="itemscope" itemprop="blogPost"> <article class="uk-article">
<a href="{{ article.url }}" class="uk-article-title uk-link-muted" itemprop="name url">{{ article.title }}</a> <a href="{{ article.url }}" class="uk-article-title uk-link-muted mg-list-title">{{ article.title }}</a>
<p class="uk-article-meta"> <p class="uk-article-meta">
<time datetime="{{ article.date.strftime('%Y-%m-%d') }}" itemprop="datePublished">{{ article.locale_date }}</time> <time datetime="{{ article.date.strftime('%Y-%m-%d') }}">{{ article.locale_date }}</time>
</p> </p>
<p class="uk-article-lead" itemprop="description">{{ article.summary }}</p> <p>{{ ' '.join(article.content.split(' ')[0:75])|striptags }}...</p>
<hr class="uk-article-divider">
</article> </article>
{% endfor %} {% endfor %}

View File

@ -6,19 +6,23 @@
{% block content %} {% block content %}
<div class="uk-width-medium-4-5"> <div class="uk-width-medium-4-5">
<h1>Categories</h1> <h1 class="uk-heading-large">Categories</h1>
{% for category, articles in categories %} {% for category, articles in categories %}
<h2><a href="{{ SITEURL}}/{{ category.url}}" class="uk-link-muted">{{ category|capitalize }}</a></h2> <h2><a href="{{ SITEURL}}/{{ category.url}}" class="uk-link-muted">{{ category|capitalize }}</a></h2>
{% for article in articles %} {% for article in articles %}
<article class="uk-article"> <article class="uk-article">
<a href="{{ SITEURL }}/{{ article.url }}" class="uk-article-title uk-link-muted">{{ article.title }}</a> <a href="{{ SITEURL }}/{{ article.url }}" class="uk-article-title uk-link-muted mg-list-title">{{ article.title }}</a>
<p class="uk-article-meta">{{ article.locale_date}} • <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></p> <p class="uk-article-meta">
<p class="uk-article-lead">{{ article.summary }}</p> <time datetime="{{ article.date.strftime('%Y-%m-%d') }}">{{ article.locale_date }}</time>
<hr class="uk-article-divider"> </p>
<p>{{ ' '.join(article.content.split(' ')[0:75])|striptags }}...</p>
</article> </article>
{% endfor %} {% endfor %}
<hr>
{% endfor %} {% endfor %}
</div> </div>
{% endblock %} {% endblock %}