blob: 11e32c598aa56276c0de450cc31eeb3f7e9766e5 [file] [log] [blame]
Giulio Fidente44ccac72013-03-21 18:51:03 +01001{% extends "base.html" %}
Giulio Fidente663537a2013-04-17 16:48:53 +02002{% block head %}
pR0Ps02550b72013-12-17 17:03:38 -05003<meta name="keywords" content="
4 {%- if GLOBAL_KEYWORDS -%}
5 {{ GLOBAL_KEYWORDS|join(', ') }}
pR0Ps86b80862014-09-25 02:41:07 -04006 {%- if article.tags -%}{{', '}}{%- endif -%}
pR0Ps02550b72013-12-17 17:03:38 -05007 {%- endif -%}
8 {{article.tags|join(', ') }}">
Giulio Fidente663537a2013-04-17 16:48:53 +02009{% endblock %}
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020010
pR0Ps86b80862014-09-25 02:41:07 -040011{% block title %}{{ article.title|striptags|escape }} | {{ SITENAME }}{% endblock %}
pR0Ps2d698922014-09-25 20:47:11 -040012{% block description %}{{ article.title|striptags|escape }} | {{ article.content|striptags|truncate(154-article.title|length)|escape }}{% endblock %}
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020013
Giulio Fidente44ccac72013-03-21 18:51:03 +010014{% block content %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010015<article>
Justin Montgomery42131ff2016-05-04 17:32:21 -070016 {% if DISPLAY_META_ABOVE_ARTICLE %}
17 {% include "modules/article_meta.html" %}
18 {% endif %}
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010019 <div class="article_title">
pR0Ps41bf7d32013-12-05 16:33:55 -050020 <h1><a href="{{ SITEURL }}/{{ article.url }}" class="nohover">{{ article.title }}</a></h1>
Luigi Santivettic6a6a562020-02-17 23:17:11 +000021 {% if DISPLAY_SUBTITLE %}
22 <h4>{{ article.subtitle }}</a></h4>
23 {% endif %}
Giulio Fidente5dba4772013-03-27 01:00:02 +010024 </div>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010025 <div class="article_text">
Giulio Fidente44ccac72013-03-21 18:51:03 +010026 {{ article.content }}
27 </div>
Luigi Santivettic6a6a562020-02-17 23:17:11 +000028 {% if article.photo_gallery %}
29 <div class="gallery">
30 {% for title, gallery in article.photo_gallery %}
31 <h1>{{ title }}</h1>
32 {% for name, photo, thumb, exif, caption in gallery %}
33 <a href="{{ SITEURL }}/{{ photo }}" title="{{ name }}" exif="{{ exif }}" caption="{{ caption }}"><img src="{{ SITEURL }}/{{ thumb }}"></a>
34 {% endfor %}
35 {% endfor %}
36 </div>
37 {% endif %}
Justin Montgomery42131ff2016-05-04 17:32:21 -070038 {% if not DISPLAY_META_ABOVE_ARTICLE %}
39 {% include "modules/article_meta.html" %}
40 {% endif %}
Victor Choueirid54283f2013-08-13 13:54:32 +030041
42 {% if DISQUS_SITENAME %}
pR0Ps032e7d82015-02-07 01:43:51 -050043 <div id="article_comments">
44 <div id="disqus_thread">
45 {% if DISQUS_COLLAPSED %}
Carey Metcalfeefe71932016-03-12 15:30:01 -050046 <a href="javascript:loadDisqus()"><i class="fa fa-comments fa-lg"></i>Click to load <span class="disqus-comment-count" data-disqus-identifier="{{ article.url }}">comments</span></a>
pR0Ps032e7d82015-02-07 01:43:51 -050047 {% endif %}
Victor Choueirid54283f2013-08-13 13:54:32 +030048 </div>
pR0Ps032e7d82015-02-07 01:43:51 -050049 </div>
50
Carey Metcalfeefe71932016-03-12 15:30:01 -050051 <script id="dsq-count-scr" src="https://{{ DISQUS_SITENAME }}.disqus.com/count.js" async></script>
pR0Ps032e7d82015-02-07 01:43:51 -050052 <script type="text/javascript">
Carey Metcalfeef1e0cb2016-03-12 14:15:42 -050053 var disqus_config = function () {
54 this.page.identifier = "{{ article.url }}";
55 this.page.title = "{{ article.title }}";
56 };
57 loadDisqus = function(sitename) {
58 var d = document, s = d.createElement('script');
59 s.src = 'https://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
60 s.setAttribute('data-timestamp', +new Date());
61 (d.head || d.body).appendChild(s);
pR0Ps032e7d82015-02-07 01:43:51 -050062 };
63 {% if not DISQUS_COLLAPSED %}
64 loadDisqus();
65 {% endif %}
66 </script>
pR0Ps2fd93002015-01-11 13:46:27 -050067 {% endif %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010068</article>
Giulio Fidentea3296652013-03-28 11:30:46 +010069{% endblock %}
70
pR0Ps095ba342015-02-04 01:38:57 -050071{% block scripts %}
72{{ super() }}
73{% if FUZZY_DATES %}
74<script type="text/javascript">window.addEventListener("load", lw_timeago);</script>
75{% endif %}
76{% endblock %}