blob: d8bd049b3d5e2e708ffa1ebc73f273ee3815ba67 [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 Santivettid93cb0f2020-02-17 22:21:28 +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 Santivettid93cb0f2020-02-17 22:21:28 +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 %}
Luigi Santivetti6ce0e132020-10-07 23:28:00 +010041 {% if article.video_gallery %}
42 <div class="gallery">
43 {% for title, gallery in article.video_gallery %}
44 <h1>{{ title }}</h1>
45 {% for video, width, height, format in gallery %}
46 <video width="{{ width }}" height="{{ height }}" controls>
47 <source src="{{ SITEURL }}/{{ video }}" type="video/{{ format }}">
48 Your browser does not support the video tag.
49 </video>
50 {% endfor %}
51 {% endfor %}
52 </div>
53 {% endif %}
54 {% if not DISPLAY_META_ABOVE_ARTICLE %}
55 {% include "modules/article_meta.html" %}
56 {% endif %}
Victor Choueirid54283f2013-08-13 13:54:32 +030057
58 {% if DISQUS_SITENAME %}
pR0Ps032e7d82015-02-07 01:43:51 -050059 <div id="article_comments">
60 <div id="disqus_thread">
61 {% if DISQUS_COLLAPSED %}
Carey Metcalfeefe71932016-03-12 15:30:01 -050062 <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 -050063 {% endif %}
Victor Choueirid54283f2013-08-13 13:54:32 +030064 </div>
pR0Ps032e7d82015-02-07 01:43:51 -050065 </div>
66
Carey Metcalfeefe71932016-03-12 15:30:01 -050067 <script id="dsq-count-scr" src="https://{{ DISQUS_SITENAME }}.disqus.com/count.js" async></script>
pR0Ps032e7d82015-02-07 01:43:51 -050068 <script type="text/javascript">
Carey Metcalfeef1e0cb2016-03-12 14:15:42 -050069 var disqus_config = function () {
70 this.page.identifier = "{{ article.url }}";
71 this.page.title = "{{ article.title }}";
72 };
73 loadDisqus = function(sitename) {
74 var d = document, s = d.createElement('script');
75 s.src = 'https://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
76 s.setAttribute('data-timestamp', +new Date());
77 (d.head || d.body).appendChild(s);
pR0Ps032e7d82015-02-07 01:43:51 -050078 };
79 {% if not DISQUS_COLLAPSED %}
80 loadDisqus();
81 {% endif %}
82 </script>
pR0Ps2fd93002015-01-11 13:46:27 -050083 {% endif %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010084</article>
Giulio Fidentea3296652013-03-28 11:30:46 +010085{% endblock %}
86
pR0Ps095ba342015-02-04 01:38:57 -050087{% block scripts %}
88{{ super() }}
89{% if FUZZY_DATES %}
90<script type="text/javascript">window.addEventListener("load", lw_timeago);</script>
91{% endif %}
92{% endblock %}