lektor-website/templates/blog-layout.html

41 lines
1.2 KiB
HTML
Raw Normal View History

2015-12-19 14:52:17 +01:00
{% extends "layout.html" %}
{% block title %}The Transcript{% endblock %}
{% block outerbody %}
{% set image = site.get('/blog').attachments.images.first() %}
{% if image %}
<div class="page-banner page-banner-200" style="background-image: url({{ image|url }})"></div>
2015-12-19 14:52:17 +01:00
{% endif %}
{{ super() }}
{% endblock %}
{% set feed_url = create_atom_feed(
filename='/blog/feed.xml',
title='The Transcript',
subtitle='Lektor\'s blog',
link='/blog'|url,
items=site.query('/blog').limit(10)
) %}
{% block body %}
<div class="row">
<div class="col-sm-8">
{% block blog_body %}{% endblock %}
</div>
<div class="col-sm-4">
<h3>About This Blog</h3>
<p>
“The Transcript” is the blog about <a href="{{ '/'|url
}}">Lektor</a>, a new solution in static content managment.
<p>
Subscribe for the latest news about Lektor as well as content
management and web development.
<ul>
<li><a href="{{ feed_url }}">RSS Feed</a>
<li><a href="https://twitter.com/getlektor">Follow us on Twitter</a>
</ul>
<h3>Missed a Post?</h3>
<ul>
2016-01-09 10:24:39 +01:00
<li><a href="{{ '$blog-archive'|url }}">Blog Archives</a>
2015-12-19 14:52:17 +01:00
</ul>
</div>
</div>
{% endblock %}