{% extends "base_blog.html" %}
{% block content %}
-<div class="m-col-m-10">
- {% block content_title %}
- {% endblock content_title %}
- {% for article in articles_page.object_list %}
- <article>
- {% include "article_header.html" %}
- {% if loop.first and articles_page.number == 1 %}
- <div class="m-clearfix-l"></div>
- {{ article.content }}
- {% endif %}
- {% include "article_footer.html" %}
- {% if not loop.first or articles_page.number != 1 %}
- <div class="m-clearfix-l"></div>
- {% endif %}
- </article>
- {% endfor %}
- {% if articles_page.has_other_pages() %}
- {% include 'pagination.html' %}
- {% endif %}
-</div>
+ <div class="m-col-m-10">
+ {% block content_title %}
+ {% endblock content_title %}
+ {% for article in articles_page.object_list %}
+ <article>
+ {% macro header() %}{% include "article_header.html" %}{% endmacro %}
+ {{ header()|indent(8) }}
+ {% if loop.first and articles_page.number == 1 %}
+ <div class="m-clearfix-l"></div>
+ {{ article.content|indent(8) }}
+ {% endif %}
+ {% macro footer() %}{% include "article_footer.html" %}{% endmacro %}
+ {{ footer()|indent(8) }}
+ {% if not loop.first or articles_page.number != 1 %}
+ <div class="m-clearfix-l"></div>
+ {% endif %}
+ </article>
+ {% endfor %}
+ {% if articles_page.has_other_pages() %}
+ {% macro pagination() %}{% include 'pagination.html' %}{% endmacro %}
+ {{ pagination()|indent(6) }}
+ {% endif %}
+ </div>
{% endblock content %}
{% 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>
+ {% 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 }}">
+ {{ title[0] }}
+ </a></h1>
+ {% if title|length >= 2 %}<h2>{{ title[1] }}</h2>{% endif %}
+ </div>
+ </div>
+ </div>
</div>
+ </div>
+ <div class="m-container m-nopady">
<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 class="m-col-m-10 m-push-m-1 m-nopady">
+ {{ article.summary }}
</div>
</div>
</div>
- </div>
- </div>
- <div class="m-container m-nopady">
- <div class="m-row">
- <div class="m-col-m-10 m-push-m-1 m-nopady">
- {{ article.summary }}
+ </header>
+ <div class="m-container m-nopady" id="m-container-inflatable">
+ <div class="m-row">
+ <div class="m-col-m-10 m-push-m-1 m-nopady">
+ {{ article.content }}
+ </div>
</div>
</div>
- </div>
- </header>
- <div class="m-container m-nopady" id="m-container-inflatable">
- <div class="m-row">
- <div class="m-col-m-10 m-push-m-1 m-nopady">
- {{ article.content }}
- </div>
- </div>
- </div>
- <footer class="m-container m-nopady">
- <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>
-</article>
-{% else %}
-<article class="m-col-m-10">
- {% include "article_header.html" %}
- <div class="m-clearfix-l"></div>
- {{ article.content }}
- {% include "article_footer.html" %}
-</article>
-{% endif %}
+ <footer class="m-container m-nopady">
+ <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>
+ </article>
+ {% else %}
+ <article class="m-col-m-10">
+ {% macro header() %}{% include "article_header.html" %}{% endmacro %}
+ {{ header()|indent(6) }}
+ <div class="m-clearfix-l"></div>
+ {{ article.content|indent(6) }}
+ {% macro footer() %}{% include "article_footer.html" %}{% endmacro %}
+ {{ footer()|indent(6) }}
+ </article>
+ {% endif %}
{% endblock %}
<header>
- <h1><a href="{{ article.url }}" rel="bookmark"
- title="Permalink to {{ article.title|striptags }}">
+ <h1><a href="{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">
<time class="m-date" datetime="{{ article.date.isoformat() }}">
- {% set month, day, year = article.locale_date.split(' ') %}
- {{ month }} <span class="m-date-day">{{ day }}</span> {{year}}
+ {% set month, day, year = article.locale_date.split(' ') %}
+ {{ month }} <span class="m-date-day">{{ day }}</span> {{year}}
</time>
- {{ article.title }}
+ {{ article.title }}
</a></h1>
- {{ article.summary }}
+ {{ article.summary|indent(2) }}
</header>
{% block title %}Posts by {{ author }} | {{ BLOGNAME }}{% endblock %}
{% block content_title %}
-<div class="m-info m-note">
- Showing only posts by <em>{{ author }}</em>. <a href="{{ BLOGURL }}/">Show all posts.</a>
-</div>
+ <div class="m-info m-note">
+ Showing only posts by <em>{{ author }}</em>. <a href="{{ BLOGURL }}/">Show all posts.</a>
+ </div>
{% endblock %}
<div class="m-container">
<div class="m-row">
<a href="{{ SITEURL }}/" id="m-navbar-brand" class="m-col-t-9 m-col-m-none m-left-m">
- {% if SITE_LOGO %}<img src="{{ SITE_LOGO }}" />{% endif %}
- {{ SITE_LOGO_TEXT }}
+ {%- if SITE_LOGO %}<img src="{{ SITE_LOGO }}" />{% endif -%}
+ {{- SITE_LOGO_TEXT -}}
</a>
<a id="m-navbar-show" href="#navigation" title="Show navigation" class="m-col-t-3 m-hide-m m-right">☰</a>
<a id="m-navbar-hide" href="#" title="Hide navigation" class="m-col-t-3 m-hide-m m-right">☰</a>
<ol class="m-col-t-6 m-col-m-none">
{% for title, link, sub in LINKS_NAVBAR1 %}
<li>
- <a href="{{ link }}" {% if title == page_title %}id="m-navbar-current"{% endif %}>{{ title }}</a>
+ <a href="{{ link }}"{% if title == page_title %} id="m-navbar-current"{% endif %}>{{ title }}</a>
{% if sub %}
<ol>
{% for title, link in sub %}
<ol class="m-col-t-6 m-col-m-none">
{% for title, link, sub in LINKS_NAVBAR2 %}
<li>
- <a href="{{ link }}" {% if title == page_title %}id="m-navbar-current"{% endif %}>{{ title }}</a>
+ <a href="{{ link }}"{% if title == page_title %} id="m-navbar-current"{% endif %}>{{ title }}</a>
{% if sub %}
<ol>
{% for title, link in sub %}
- <li><a href="{{ link }}">{{ title }}</a></li>
+ <li><a href="{{ link }}">{{ title }}</a></li>
{% endfor %}
</ol>
{% endif %}
<div class="m-row">
<div class="m-col-s-3 m-col-t-6">
<h3>
- {% if LINKS_FOOTER1[0][1] %}<a href="{{ LINKS_FOOTER1[0][1] }}/">{% endif %}
- {{ LINKS_FOOTER1[0][0] }}
- {% if LINKS_FOOTER1[0][1] %}</a>{% endif %}
+ {%- if LINKS_FOOTER1[0][1] %}<a href="{{ LINKS_FOOTER1[0][1] }}/">{% endif %}
+ {{- LINKS_FOOTER1[0][0] -}}
+ {% if LINKS_FOOTER1[0][1] -%}</a>{% endif -%}
</h3>
<ul>
- {% for title, link in LINKS_FOOTER1 %}
- {% if loop.index0 != 0 %}<li><a href="{{ link }}">{{ title }}</a></li>{% endif %}
- {% endfor %}
+ {% for title, link in LINKS_FOOTER1 %}{% if loop.index0 != 0 %}
+ <li><a href="{{ link }}">{{ title }}</a></li>
+ {% endif %}{% endfor %}
</ul>
</div>
<div class="m-col-s-3 m-col-t-6">
<h3>
- {% if LINKS_FOOTER2[0][1] %}<a href="{{ LINKS_FOOTER2[0][1] }}/">{% endif %}
- {{ LINKS_FOOTER2[0][0] }}
- {% if LINKS_FOOTER2[0][1] %}</a>{% endif %}
+ {%- if LINKS_FOOTER2[0][1] %}<a href="{{ LINKS_FOOTER2[0][1] }}/">{% endif %}
+ {{- LINKS_FOOTER2[0][0] -}}
+ {% if LINKS_FOOTER2[0][1] %}</a>{% endif -%}
</h3>
<ul>
- {% for title, link in LINKS_FOOTER2 %}
- {% if loop.index0 != 0 %}<li><a href="{{ link }}">{{ title }}</a></li>{% endif %}
- {% endfor %}
+ {% for title, link in LINKS_FOOTER2 %}{% if loop.index0 != 0 %}
+ <li><a href="{{ link }}">{{ title }}</a></li>
+ {% endif %}{% endfor %}
</ul>
</div>
<div class="m-clearfix-t"></div>
<div class="m-col-s-3 m-col-t-6">
<h3>
- {% if LINKS_FOOTER3[0][1] %}<a href="{{ LINKS_FOOTER3[0][1] }}/">{% endif %}
- {{ LINKS_FOOTER3[0][0] }}
- {% if LINKS_FOOTER3[0][1] %}</a>{% endif %}
+ {%- if LINKS_FOOTER3[0][1] %}<a href="{{ LINKS_FOOTER3[0][1] }}/">{% endif %}
+ {{- LINKS_FOOTER3[0][0] -}}
+ {% if LINKS_FOOTER3[0][1] %}</a>{% endif -%}
</h3>
<ul>
- {% for title, link in LINKS_FOOTER3 %}
- {% if loop.index0 != 0 %}<li><a href="{{ link }}">{{ title }}</a></li>{% endif %}
- {% endfor %}
+ {% for title, link in LINKS_FOOTER3 %}{% if loop.index0 != 0 %}
+ <li><a href="{{ link }}">{{ title }}</a></li>
+ {% endif %}{% endfor %}
</ul>
</div>
<div class="m-col-s-3 m-col-t-6">
</div>
<div class="m-row">
<div class="m-col-l-10 m-push-l-1">
- {{ FINE_PRINT|render_rst }}
+ {{ FINE_PRINT|render_rst|indent(10) }}
</div>
</div>
</div>
{% extends "base_blog.html" %}
{% block content %}
-<div class="m-col-m-10">
- {% block content_title %}
- {% endblock content_title %}
- {% for article in articles_page.object_list %}
- <article>
- {% include "article_header.html" %}
- {% include "article_footer.html" %}
- </article>
- {% endfor %}
- {% if articles_page.has_other_pages() %}
- {% include 'pagination.html' %}
- {% endif %}
-</div>
+ <div class="m-col-m-10">
+ {% block content_title %}
+ {% endblock content_title %}
+ {% for article in articles_page.object_list %}
+ <article>
+ {% macro header() %}{% include "article_header.html" %}{% endmacro %}
+ {{ header()|indent(8) }}
+ {% macro footer() %}{% include "article_footer.html" %}{% endmacro %}
+ {{ footer()|indent(8) }}
+ </article>
+ {% endfor %}
+ {% if articles_page.has_other_pages() %}
+ {% macro pagination() %}{% include 'pagination.html' %}{% endmacro %}
+ {{ pagination()|indent(6) }}
+ {% endif %}
+ </div>
{% endblock content %}
{% block title %}{{ category }} | {{ BLOGNAME }}{% endblock %}
{% block content_title %}
-<div class="m-info m-note">
- Showing only posts in <em>{{ category }}</em>. <a href="{{ BLOGURL }}/">Show all posts.</a>
-</div>
+ <div class="m-info m-note">
+ Showing only posts in <em>{{ category }}</em>. <a href="{{ BLOGURL }}/">Show all posts.</a>
+ </div>
{% endblock %}
{% set page_title = page.title|replace('­', '') %}
{% extends "base.html" %}
-{% block title %}{{ page.title }} | {{ SITENAME }}{%endblock%}
+{% block title %}{{ page.title }} | {{ SITENAME }}{% endblock %}
+
+{% block head %}
+ {{- super() -}}
+ {% if page.css %}
+ <link rel="stylesheet" href="{{ page|expand_link('css') }}" />
+ {% endif %}
+{% endblock %}
{% block main %}
<article class="m-container" id="m-container-inflatable">
<div class="m-row">
<div class="m-col-l-10 m-push-l-1">
<h1>{{ page.title }}</h1>
- {{ page.content }}
+ {{ page.content|indent(6) }}
</div>
</div>
</article>
{% if DEFAULT_PAGINATION %}
<div class="m-article-pagination">
- {% if articles_page.has_previous() %}
- <a href="{{ articles_previous_page.url }}">« newer articles</a> |
- {% endif %}
+ {%- if articles_page.has_previous() %}<a href="{{ articles_previous_page.url }}">« newer articles</a> | {% endif -%}
page {{ articles_page.number }}
- {% if articles_page.has_next() %}
- | <a href="{{ articles_next_page.url }}">older articles »</a>
- {% endif %}
+ {%- if articles_page.has_next() %} | <a href="{{ articles_next_page.url }}">older articles »</a>{% endif -%}
</div>
{% endif %}
{% block title %}Posts tagged {{ tag }} | {{ BLOGNAME }}{% endblock %}
{% block content_title %}
-<div class="m-info m-note">
- Showing only posts tagged <em>{{ tag }}</em>. <a href="{{ BLOGURL }}/">Show all posts.</a>
-</div>
+ <div class="m-info m-note">
+ Showing only posts tagged <em>{{ tag }}</em>. <a href="{{ BLOGURL }}/">Show all posts.</a>
+ </div>
{% endblock %}