{% endblock %}
{% block content %}
- {% if article.cover %}
- <article class="m-jumbo {{ article.class }}">
- <header>
- <div class="m-jumbo-image" style="background-image: url('{{ article|expand_link('cover') }}');">
- <div class="m-jumbo-cover">
- <div class="m-container">
- <div class="m-row">
- <div class="m-col-t-6 m-col-s-5 m-push-s-1 m-text-left">{{ article.locale_date }}</div>
- <div class="m-col-t-6 m-col-s-5 m-push-s-1 m-text-right">{% for author in article.authors %}<a href="{{ author.url }}">{{ author }}</a>{% endfor %}</div>
- </div>
- <div class="m-row">
- <div class="m-col-t-12 m-col-s-10 m-push-s-1 m-col-m-8 m-push-m-2">
- {% set title = article.title.split(' — ') %}
- <h1><a href="{{ article.url }}" rel="bookmark"
- title="Permalink to {{ article.title|striptags }}">
+ {% if article.cover %}
+ <article class="m-jumbo{% if article.class %} {{ article.class }}{%endif%}">
+ <header>
+ <div class="m-jumbo-image" style="background-image: url('{{ article|expand_link('cover') }}');">
+ <div class="m-jumbo-cover">
+ <div class="m-container">
+ <div class="m-row">
+ <div class="m-col-t-6 m-col-s-5 m-push-s-1 m-text-left">{{ article.locale_date }}</div>
+ <div class="m-col-t-6 m-col-s-5 m-push-s-1 m-text-right">{% for author in article.authors %}<a href="{{ author.url }}">{{ author }}</a>{% endfor %}</div>
+ </div>
+ <div class="m-row">
+ <div class="m-col-t-12 m-col-s-10 m-push-s-1 m-col-m-8 m-push-m-2">
+ {% set title = article.title.split(' — ') %}
+ <h1><a href="{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">
{{ title[0] }}
- </a></h1>
- {% if title|length >= 2 %}<h2>{{ title[1] }}</h2>{% endif %}
- </div>
+ </a></h1>
+ {% if title|length >= 2 %}
+ <h2>{{ title[1] }}</h2>
+ {% endif %}
</div>
</div>
</div>
</div>
- <div class="m-container">
- <div class="m-row">
- <div class="m-col-m-10 m-push-m-1 m-nopady">
- {{ article.summary }}
- </div>
- </div>
- </div>
- </header>
- <div class="m-container m-nopady" id="m-container-inflatable">
+ </div>
+ <div class="m-container">
<div class="m-row">
<div class="m-col-m-10 m-push-m-1 m-nopady">
+ {{ article.summary|indent(12) }}
+ </div>
+ </div>
+ </div>
+ </header>
+ <div class="m-container" id="m-container-inflatable">
+ <div class="m-row">
+ <div class="m-col-m-10 m-push-m-1 m-nopady">
<!-- content -->
-{{ article.content }}
+{{ article.content -}}
<!-- /content -->
- </div>
</div>
</div>
- <footer class="m-container">
- <div class="m-row">
- <div class="m-col-m-10 m-push-m-1 m-nopady">
- <p>Posted {% if article.authors %}by {% for author in article.authors %}<a href="{{ author.url }}">{{ author }}</a>{% endfor %}{% endif %} on <time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time> in <a href="{{ article.category.url }} ">{{ article.category }}</a>.{% if article.tags %} Tags: {% for tag in article.tags %}<a href="{{ tag.url }}">{{ tag }}</a>{% if not loop.last %}, {% endif %}{% endfor %}.{% endif %}</p>
- </div>
+ </div>
+ <footer class="m-container">
+ <div class="m-row">
+ <div class="m-col-m-10 m-push-m-1 m-nopadb">
+ <p>Posted {% if article.authors %}by {% for author in article.authors %}<a href="{{ author.url }}">{{ author }}</a>{% endfor %}{% endif %} on <time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time> in <a href="{{ article.category.url }} ">{{ article.category }}</a>.{% if article.tags %} Tags: {% for tag in article.tags %}<a href="{{ tag.url }}">{{ tag }}</a>{% if not loop.last %}, {% endif %}{% endfor %}.{% endif %}</p>
</div>
- </footer>
- </article>
- {% else %}
- <article class="m-col-m-10">
+ </div>
+ </footer>
+ </article>
+ {% else %}
+ <article class="m-col-m-10 m-nopadb">
{% macro header() %}{% include "article_header.html" %}{% endmacro %}
{{ header()|indent(6) }}
<div class="m-clearfix-l"></div>
<!-- content -->
-{{ article.content }}
+{{ article.content -}}
<!-- /content -->
{% macro footer() %}{% include "article_footer.html" %}{% endmacro %}
{{ footer()|indent(6) }}
{% block content %}
{% endblock %}
{% if article and article.cover %}
-<nav class="m-navpanel m-container">
- <div class="m-row">
- <div class="m-col-m-5 m-push-m-1 m-col-s-6">
- <h3>Cate­gories</h3>
- <ol class="m-block-bar-m">
- {% for cat, null in categories %}
- <li><a href="{{ cat.url }}">{{ cat }}</a></li>
- {% endfor %}
- </ol>
- </div>
- <div class="m-col-m-5 m-push-m-1 m-col-s-6">
- <h3>Tag cloud</h3>
- <ul class="m-tagcloud">
- {% set max_articles_per_tag = tags|map(attribute='1')|map('length')|sort|last %}
- {% for tag, articles in tags|sort(attribute='0') %}
- <li class="m-tag-{{ (TAG_CLOUD_LEVELS*(articles|length)/max_articles_per_tag)|round(0, 'ceil')|int }} "><a href="{{ tag.url }}">{{ tag }}</a></li>
- {% endfor %}
- </ul>
+ <nav class="m-navpanel m-container">
+ <div class="m-row">
+ <div class="m-col-m-5 m-push-m-1 m-col-s-6">
+ <h3>Cate­gories</h3>
+ <ol class="m-block-bar-m">
+ {% for cat, null in categories %}
+ <li><a href="{{ cat.url }}">{{ cat }}</a></li>
+ {% endfor %}
+ </ol>
+ </div>
+ <div class="m-col-m-5 m-push-m-1 m-col-s-6">
+ <h3>Tag cloud</h3>
+ <ul class="m-tagcloud">
+ {% set max_articles_per_tag = tags|map(attribute='1')|map('length')|sort|last %}
+ {% for tag, articles in tags|sort(attribute='0') %}
+ <li class="m-tag-{{ (5*(articles|length)/max_articles_per_tag)|round(0, 'ceil')|int }} "><a href="{{ tag.url }}">{{ tag }}</a></li>
+ {% endfor %}
+ </ul>
+ </div>
</div>
- </div>
-</nav>
+ </nav>
{% else %}
<nav class="m-navpanel m-col-m-2">
<h3>Cate­gories</h3>
<ul class="m-tagcloud">
{% set max_articles_per_tag = tags|map(attribute='1')|map('length')|sort|last %}
{% for tag, articles in tags|sort(attribute='0') %}
- <li class="m-tag-{{ (TAG_CLOUD_LEVELS*(articles|length)/max_articles_per_tag)|round(0, 'ceil')|int }} "><a href="{{ tag.url }}">{{ tag }}</a></li>
+ <li class="m-tag-{{ (5*(articles|length)/max_articles_per_tag)|round(0, 'ceil')|int }} "><a href="{{ tag.url }}">{{ tag }}</a></li>
{% endfor %}
</ul>
</nav>