lektor-website/templates/blog.html

29 lines
861 B
HTML
Raw Permalink Normal View History

2015-12-22 11:50:18 +01:00
{% extends "blog-layout.html" %}
2015-12-19 14:52:17 +01:00
{% from "macros/pagination.html" import render_pagination %}
{% block title %}The Transcript{% endblock %}
{% block blog_body %}
<h1>The Transcript</h1>
{% for post in this.pagination.items %}
<div class="blog-snippet">
<h2><a href="{{ post|url }}">{{ post.title }}</a></h2>
<p class="summary">
{{ post.summary }}
<a class="more" href="{{ post|url }}">Read more …</a>
<p class="meta">
by
{% if post.twitter_handle %}
<a href="https://twitter.com/{{ post.twitter_handle }}">{{
post.author or post.twitter_handle }}</a>
{% else %}
{{ post.author }}
{% endif %}
on {{ post.pub_date|dateformat }}
</p>
</div>
{% endfor %}
{% if this.pagination.pages > 1 %}
{{ render_pagination(this.pagination) }}
{% endif %}
{% endblock %}