-
-
Notifications
You must be signed in to change notification settings - Fork 812
Expand file tree
/
Copy pathblog-post.html
More file actions
44 lines (41 loc) · 1.56 KB
/
blog-post.html
File metadata and controls
44 lines (41 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{% extends "layout.html" %}
{% from "macros/blog.html" import render_blog_post with context %}
{% from "macros/breadcrumbs.html" import breadcrumbs with context %}
{% block title %}{{ this.title }}{% endblock %}
{% block preamble %}
<div class="banner">
<div class="container">
<p>{{ breadcrumbs(this) }}</p>
<h1>{{ this.title }}</h1>
<p>{{ "posted_by"|trans }}
{% if this.mastodon_handle %}
<a href="https://{{ this.mastodon_handle.split('@')[2] }}/@{{ this.mastodon_handle.split('@')[1] }}">{{ this.author or this.mastodon_handle }}</a>
{% elif this.twitter_handle %}
<a href="https://twitter.com/{{ this.twitter_handle }}">{{ this.author or this.twitter_handle }}</a>
{% else %}
{{ this.author }}
{% endif %}
{{ "on"|trans }} {{ this.pub_date.strftime('%Y/%m/%d')}}
</p>
</div>
</div>
{% endblock %}
{% block body %}
<div class="row-fluid">
<div class="col-sm-12 col-md-10 col-lg-8" >
{{ render_blog_post(this) }}
</div>
<div class="hidden-sm-down col-md-2 col-lg-4"></div>
<div class="col-sm-12 col-md-4 gutter">
<dl>
{% if this.has_prev() %}
<dt>{{ "next_entry"|trans }}</dt>
<dd><a href="{{ this.get_siblings().prev_page|url(alt=this.alt) }}">{{ this.get_siblings().prev_page.title }}</a></dd>
{% endif %}
{% if this.has_next() %}
<dt>{{ "previous_entry"|trans }}</dt>
<dd><a href="{{ this.get_siblings().next_page|url(alt=this.alt) }}">{{ this.get_siblings().next_page.title }}</a></dd>
{% endif %}
</dl>
</div></div>
{% endblock %}