blob: 4269d9a53aecea3414d77fd01f5f50c27befee3a (
plain) (
blame)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
|
{% extends "base.html" %}
{% block title %}{{ article.title|striptags }}{% endblock %}
{% block content %}
<div class="page-container">
<div class="entry-content">
{% for author in article.authors %}
<div class="post-meta pure-u-10-24">
{% if author|string in BLOG_AUTHORS %}
<div class="pure-u">
<img src="{{ BLOG_AUTHORS.get(author|string).image }}" class="post-avatar" alt="Go to the profile of {{ author|striptags }}">
</div>
{% endif %}
<div class="pure-u meta-data">
<a href="{{ SITEURL }}/{{ author.url }}" class="category">{{ author }}</a><br />
{{ BLOG_AUTHORS.get(author|string).short_description }}<br />
<abbr title="{{ article.date.isoformat() }}">{{ article.locale_date }}</abbr>
{% if article.readtime_minutes %}
— {{ article.readtime_minutes }} min read
{% endif %}
</div>
</div>
{% endfor %}
</div>
<div class="article-header-container">
<div class="background-image-container">
{# title with big background image #}
{% if article.cover %}
<div class="background-image" style="background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url({{ article.cover }});">
<img src="{{ article.cover }}" alt="{{ article.title|striptags }}">
<div class="title">
<h1>
{{ article.title }}
</h1>
{% if article.subtitle %}
<h2>
{{ article.subtitle }}
</h2>
{% endif %}
</div>
</div>
{% else %}
<div class="background-image-small">
{% if article.thumbnail %}
<img src="{{ article.thumbnail }}" alt="{{ article.title|striptags }}">
{% endif %}
<div class="title-container">
<h1>{{ article.title }}</h1>
{% if article.subtitle %}
<h4>{{ article.subtitle }}</h4>
{% endif %}
</div>
</div>
{% endif %}
</div>
</div>
<div class="entry-content">
<!--
<div align="right">
{% set i = article.authors|count %}
{% if i != 1 %}
Authors:<br>
{% endif %}
{% if i == 1 %}
Author:<br>
{% endif %}
{% if article.authors %}
{% for author in article.authors %}
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a><br>
{% endfor %}
{% endif %}
</div>
-->
{{ article.content }}
</div>
<footer>
{% if article.tags %}
<div class="tags">
{% for tag in article.tags %}
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag | escape }}</a>
{% endfor %}
</div>
{% endif %}
<div class="pure-g post-footer">
{% if article.authors %}
<div class="pure-g">
{% for author in article.authors %}
<div class="pure-g poster-info">
{% if author|string in BLOG_AUTHORS %}
<div class="pure-u">
<a href="{{ SITEURL }}/{{ author.url }}"><img src="{{ BLOG_AUTHORS.get(author|string).image }}" alt=""></a>
</div>
{% endif %}
<div class="pure-u">
<h3 class="author-name"><a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a></h3>
<p class="author-description">
{% if BLOG_AUTHORS %}
{{ BLOG_AUTHORS.get(author|string).description }}
{% endif %}
</p>
</div>
</div>
{% endfor %}
</div>
{% endif %}
<!--
{% if article.category|string in BLOG_CATEGORIES %}
<div class="pure-u-1 pure-u-md-1-2">
<div class="pure-g post-category-info">
<div class="pure-u">
<a href="{{ SITEURL }}/{{ article.category.url }}"><img src="{{ BLOG_CATEGORIES.get(article.category|string).thumbnail }}" alt=""></a>
</div>
<div class="pure-u-3-4">
<h3 class="author-name"><a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></h3>
<p class="author-description">
{{ BLOG_CATEGORIES.get(article.category|string).description }}
</p>
</div>
</div>
</div>
{% endif %}
-->
</div>
</footer>
{% if DISQUS_SITENAME %}
<div class="entry-content">
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = '{{ DISQUS_SITENAME }}';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
</div>
{% endif %}
</div>
{% endblock %}
|