blob: c0ee013d21d335b7703ebc48825d6772770bff29 [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>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010016 <div class="article_title">
pR0Ps41bf7d32013-12-05 16:33:55 -050017 <h1><a href="{{ SITEURL }}/{{ article.url }}" class="nohover">{{ article.title }}</a></h1>
Luigi Santivettic6a6a562020-02-17 23:17:11 +000018 {% if DISPLAY_SUBTITLE %}
19 <h4>{{ article.subtitle }}</a></h4>
20 {% endif %}
Giulio Fidente5dba4772013-03-27 01:00:02 +010021 </div>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010022 <div class="article_text">
Giulio Fidente44ccac72013-03-21 18:51:03 +010023 {{ article.content }}
24 </div>
Luigi Santivettic6a6a562020-02-17 23:17:11 +000025 {% if article.photo_gallery %}
26 <div class="gallery">
27 {% for title, gallery in article.photo_gallery %}
28 <h1>{{ title }}</h1>
29 {% for name, photo, thumb, exif, caption in gallery %}
30 <a href="{{ SITEURL }}/{{ photo }}" title="{{ name }}" exif="{{ exif }}" caption="{{ caption }}"><img src="{{ SITEURL }}/{{ thumb }}"></a>
31 {% endfor %}
32 {% endfor %}
33 </div>
34 {% endif %}
Luigi Santivetti8c549192020-10-05 23:19:50 +010035 {% if article.video_gallery %}
36 <div class="gallery">
37 {% for title, gallery in article.video_gallery %}
38 <h1>{{ title }}</h1>
39 {% for video, width, height, format in gallery %}
40 <video width="{{ width }}" height="{{ height }}" controls>
41 <source src="{{ SITEURL }}/{{ video }}" type="video/{{ format }}">
42 Your browser does not support the video tag.
43 </video>
44 {% endfor %}
45 {% endfor %}
46 </div>
47 {% endif %}
48 {% if not DISPLAY_META_ABOVE_ARTICLE %}
49 {% include "modules/article_meta.html" %}
50 {% endif %}
Victor Choueirid54283f2013-08-13 13:54:32 +030051
52 {% if DISQUS_SITENAME %}
pR0Ps032e7d82015-02-07 01:43:51 -050053 <div id="article_comments">
54 <div id="disqus_thread">
55 {% if DISQUS_COLLAPSED %}
Carey Metcalfeefe71932016-03-12 15:30:01 -050056 <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 -050057 {% endif %}
Victor Choueirid54283f2013-08-13 13:54:32 +030058 </div>
pR0Ps032e7d82015-02-07 01:43:51 -050059 </div>
60
Carey Metcalfeefe71932016-03-12 15:30:01 -050061 <script id="dsq-count-scr" src="https://{{ DISQUS_SITENAME }}.disqus.com/count.js" async></script>
pR0Ps032e7d82015-02-07 01:43:51 -050062 <script type="text/javascript">
Carey Metcalfeef1e0cb2016-03-12 14:15:42 -050063 var disqus_config = function () {
64 this.page.identifier = "{{ article.url }}";
65 this.page.title = "{{ article.title }}";
66 };
67 loadDisqus = function(sitename) {
68 var d = document, s = d.createElement('script');
69 s.src = 'https://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
70 s.setAttribute('data-timestamp', +new Date());
71 (d.head || d.body).appendChild(s);
pR0Ps032e7d82015-02-07 01:43:51 -050072 };
73 {% if not DISQUS_COLLAPSED %}
74 loadDisqus();
75 {% endif %}
76 </script>
pR0Ps2fd93002015-01-11 13:46:27 -050077 {% endif %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010078</article>
Giulio Fidentea3296652013-03-28 11:30:46 +010079{% endblock %}
80
pR0Ps095ba342015-02-04 01:38:57 -050081{% block scripts %}
82{{ super() }}
83{% if FUZZY_DATES %}
84<script type="text/javascript">window.addEventListener("load", lw_timeago);</script>
85{% endif %}
86{% endblock %}