blob: bd2a24d0e0486838d94c17f7b33f7e6176d6ec33 (
plain)
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
|
{% import 'translations.html' as translations with context %}
{% extends 'base.html' %}
{% block title %}{{article.title}}{% endblock %}
{% block head %}
{% if GOOGLE_PLUSONE %}
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
{% endif %}
{% endblock %}
{% block main_section %}
<section class="main-section blog-section" id="blog-posts">
<h3 class="date">{{article.locale_date}}</h3>
<article>
<hgroup>
<h2><a href="{{SITEURL}}/{{article.url}}">{{article.title}}</a></h2>
{% include "twitter.html" %}
{% include "google_plusone.html" %}
{{ translations.translate(article) }}
</hgroup>
{{article.content}}
<br/>
<footer>
{% if article.tags %}
<h4>TAGS</h4>
<ul class="tags">
{% for tag in article.tags %}
<li><a href="{{ SITEURL }}/tag/{{ tag }}.html" class="tag">{{tag}}</a></li>
{% endfor %}
</ul>
{% endif %}
<br/>
{% if DISQUS_SITENAME %}
<div class="comments">
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_identifier = "{{ article.url }}";
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'https://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
</div>
{% endif %}
</footer>
</article>
</section>
{% endblock %}
|