blob: 103931e53ff11e7df2f90a1b6ddc0e9cd751e2de [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>
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>
Justin Montgomery42131ff2016-05-04 17:32:21 -070025 {% if not DISPLAY_META_ABOVE_ARTICLE %}
26 {% include "modules/article_meta.html" %}
27 {% endif %}
Victor Choueirid54283f2013-08-13 13:54:32 +030028
29 {% if DISQUS_SITENAME %}
pR0Ps032e7d82015-02-07 01:43:51 -050030 <div id="article_comments">
31 <div id="disqus_thread">
32 {% if DISQUS_COLLAPSED %}
Carey Metcalfeefe71932016-03-12 15:30:01 -050033 <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 -050034 {% endif %}
Victor Choueirid54283f2013-08-13 13:54:32 +030035 </div>
pR0Ps032e7d82015-02-07 01:43:51 -050036 </div>
37
Carey Metcalfeefe71932016-03-12 15:30:01 -050038 <script id="dsq-count-scr" src="https://{{ DISQUS_SITENAME }}.disqus.com/count.js" async></script>
pR0Ps032e7d82015-02-07 01:43:51 -050039 <script type="text/javascript">
Carey Metcalfeef1e0cb2016-03-12 14:15:42 -050040 var disqus_config = function () {
41 this.page.identifier = "{{ article.url }}";
42 this.page.title = "{{ article.title }}";
43 };
44 loadDisqus = function(sitename) {
45 var d = document, s = d.createElement('script');
46 s.src = 'https://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
47 s.setAttribute('data-timestamp', +new Date());
48 (d.head || d.body).appendChild(s);
pR0Ps032e7d82015-02-07 01:43:51 -050049 };
50 {% if not DISQUS_COLLAPSED %}
51 loadDisqus();
52 {% endif %}
53 </script>
pR0Ps2fd93002015-01-11 13:46:27 -050054 {% endif %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010055</article>
Giulio Fidentea3296652013-03-28 11:30:46 +010056{% endblock %}
57
pR0Ps095ba342015-02-04 01:38:57 -050058{% block scripts %}
59{{ super() }}
60{% if FUZZY_DATES %}
61<script type="text/javascript">window.addEventListener("load", lw_timeago);</script>
62{% endif %}
63{% endblock %}