blob: 62484ad6f45a99ac2616b1a1ae12da09be160a9d [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>
Giulio Fidente5dba4772013-03-27 01:00:02 +010018 </div>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010019 <div class="article_text">
Giulio Fidente44ccac72013-03-21 18:51:03 +010020 {{ article.content }}
21 </div>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010022 <div class="article_meta">
pR0Psfc48ff82015-01-15 01:32:41 -050023 <p>Posted <time data-timeago datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
pR0Psaeaf5f52014-09-30 21:41:06 -040024 {% if article.author %}
25 by {% if AUTHORS_URL %} <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>{% else %}{{ article.author}}{% endif %}
26 {% endif %}
pR0Ps6d648322015-01-15 01:34:55 -050027 </p>
pR0Ps441bfd22014-12-17 22:08:21 -050028 {% if article.modified %}
pR0Psfc48ff82015-01-15 01:32:41 -050029 <p>Last updated <time data-timeago datetime="{{ article.modified.isoformat() }}">{{ article.locale_modified }}</time></p>
pR0Ps441bfd22014-12-17 22:08:21 -050030 {% endif %}
pR0Pscc0f61e2014-09-25 02:58:23 -040031 <p>
pR0Ps589f9bd2013-12-06 17:00:07 -050032 {% if CATEGORY_URL %}
pR0Pscc0f61e2014-09-25 02:58:23 -040033 Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
34 {% if TAG_URL and article.tags %}&ndash;&ndash;{% endif %}
pR0Ps589f9bd2013-12-06 17:00:07 -050035 {% endif %}
36 {% if TAG_URL and article.tags %}
pR0Pscc0f61e2014-09-25 02:58:23 -040037 Tags:
Giulio Fidente8305e742013-03-22 23:17:45 +010038 {% for tag in article.tags %}
Giulio Fidente91c1d452013-03-22 15:15:17 +010039 <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %},{% endif %}
Giulio Fidente8305e742013-03-22 23:17:45 +010040 {% endfor %}
41 </p>
Giulio Fidente44ccac72013-03-21 18:51:03 +010042 {% endif %}
43 </div>
Victor Choueirid54283f2013-08-13 13:54:32 +030044
45 {% if DISQUS_SITENAME %}
pR0Ps032e7d82015-02-07 01:43:51 -050046 <div id="article_comments">
47 <div id="disqus_thread">
48 {% if DISQUS_COLLAPSED %}
49 <a href="javascript:loadDisqus()"><i class="fa fa-comments fa-lg"></i>Click to load comments</a>
50 {% endif %}
Victor Choueirid54283f2013-08-13 13:54:32 +030051 </div>
pR0Ps032e7d82015-02-07 01:43:51 -050052 </div>
53
54 <script type="text/javascript">
Carey Metcalfeef1e0cb2016-03-12 14:15:42 -050055 var disqus_config = function () {
56 this.page.identifier = "{{ article.url }}";
57 this.page.title = "{{ article.title }}";
58 };
59 loadDisqus = function(sitename) {
60 var d = document, s = d.createElement('script');
61 s.src = 'https://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
62 s.setAttribute('data-timestamp', +new Date());
63 (d.head || d.body).appendChild(s);
pR0Ps032e7d82015-02-07 01:43:51 -050064 };
65 {% if not DISQUS_COLLAPSED %}
66 loadDisqus();
67 {% endif %}
68 </script>
pR0Ps2fd93002015-01-11 13:46:27 -050069 {% endif %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010070</article>
Giulio Fidentea3296652013-03-28 11:30:46 +010071{% endblock %}
72
pR0Ps095ba342015-02-04 01:38:57 -050073{% block scripts %}
74{{ super() }}
75{% if FUZZY_DATES %}
76<script type="text/javascript">window.addEventListener("load", lw_timeago);</script>
77{% endif %}
78{% endblock %}