lektor-website/templates/blog-post.html

43 lines
1.3 KiB
HTML
Raw Normal View History

2015-12-19 14:52:17 +01:00
{% extends "layout.html" %}
{% block title %}{{ this.title }} | The Transcript{% endblock %}
{% from 'macros/blocksupport.html' import render_full_width_blocks %}
{% block outerbody %}
<div class="blog-post">
{% call render_full_width_blocks(this.body.blocks) %}
<div class="meta-bar">
<h1>{{ this.title }}</h1>
<p class="meta">
by
{% if this.twitter_handle %}
<a href="https://twitter.com/{{ this.twitter_handle }}">{{
this.author or this.twitter_handle }}</a>
{% else %}
{{ this.author }}
{% endif %}
on {{ this.pub_date|dateformat('full') }}
</p>
</div>
{% endcall %}
2016-01-06 22:52:54 +01:00
{% set siblings = this.get_siblings() %}
{% set older = siblings.next_page %}
{% set newer = siblings.prev_page %}
2016-01-06 22:52:54 +01:00
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
{% if older %}
<div class="nav-prev">
<a href="{{ older|url }}">Previous: {{ older.title }}</a>
</div>
{% endif %}
{% if newer %}
<div class="nav-next">
<a href="{{ newer|url }}">Next: {{ newer.title }}</a>
</div>
{% endif %}
2016-01-09 11:18:19 +01:00
</div>
2016-01-06 22:52:54 +01:00
</div>
</div>
2015-12-19 14:52:17 +01:00
</div>
{% endblock %}