blob: eda3814621c9fa0c1d670e76a640ed02f2b602e7 [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(', ') }}">
pR0Psfc48ff82015-01-15 01:32:41 -05009
10 {% if FUZZY_DATES %}
11 <script src="{{ SITEURL }}/theme/js/lw-timeago/lw-timeago.js" type="text/javascript"></script>
12 {% endif %}
Giulio Fidente663537a2013-04-17 16:48:53 +020013{% endblock %}
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020014
pR0Ps86b80862014-09-25 02:41:07 -040015{% block title %}{{ article.title|striptags|escape }} | {{ SITENAME }}{% endblock %}
pR0Ps2d698922014-09-25 20:47:11 -040016{% block description %}{{ article.title|striptags|escape }} | {{ article.content|striptags|truncate(154-article.title|length)|escape }}{% endblock %}
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020017
Giulio Fidente44ccac72013-03-21 18:51:03 +010018{% block content %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010019<article>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010020 <div class="article_title">
pR0Ps41bf7d32013-12-05 16:33:55 -050021 <h1><a href="{{ SITEURL }}/{{ article.url }}" class="nohover">{{ article.title }}</a></h1>
Giulio Fidente5dba4772013-03-27 01:00:02 +010022 </div>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010023 <div class="article_text">
Giulio Fidente44ccac72013-03-21 18:51:03 +010024 {{ article.content }}
25 </div>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010026 <div class="article_meta">
pR0Psfc48ff82015-01-15 01:32:41 -050027 <p>Posted <time data-timeago datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
pR0Psaeaf5f52014-09-30 21:41:06 -040028 {% if article.author %}
29 by {% if AUTHORS_URL %} <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>{% else %}{{ article.author}}{% endif %}
30 {% endif %}
pR0Ps6d648322015-01-15 01:34:55 -050031 </p>
pR0Ps441bfd22014-12-17 22:08:21 -050032 {% if article.modified %}
pR0Psfc48ff82015-01-15 01:32:41 -050033 <p>Last updated <time data-timeago datetime="{{ article.modified.isoformat() }}">{{ article.locale_modified }}</time></p>
pR0Ps441bfd22014-12-17 22:08:21 -050034 {% endif %}
pR0Pscc0f61e2014-09-25 02:58:23 -040035 <p>
pR0Ps589f9bd2013-12-06 17:00:07 -050036 {% if CATEGORY_URL %}
pR0Pscc0f61e2014-09-25 02:58:23 -040037 Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
38 {% if TAG_URL and article.tags %}&ndash;&ndash;{% endif %}
pR0Ps589f9bd2013-12-06 17:00:07 -050039 {% endif %}
40 {% if TAG_URL and article.tags %}
pR0Pscc0f61e2014-09-25 02:58:23 -040041 Tags:
Giulio Fidente8305e742013-03-22 23:17:45 +010042 {% for tag in article.tags %}
Giulio Fidente91c1d452013-03-22 15:15:17 +010043 <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %},{% endif %}
Giulio Fidente8305e742013-03-22 23:17:45 +010044 {% endfor %}
45 </p>
Giulio Fidente44ccac72013-03-21 18:51:03 +010046 {% endif %}
47 </div>
Victor Choueirid54283f2013-08-13 13:54:32 +030048
49 {% if DISQUS_SITENAME %}
pR0Ps1a7a4782014-09-25 02:49:34 -040050 <div id="article_comments">
Victor Choueirid54283f2013-08-13 13:54:32 +030051 <div id="disqus_thread"></div>
52 <script type="text/javascript">
53 var disqus_identifier = "{{ article.url }}";
54 (function() {
55 var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
Vincent Cheng8d10ff22014-04-30 19:12:51 -070056 dsq.src = '//{{ DISQUS_SITENAME }}.disqus.com/embed.js';
Victor Choueirid54283f2013-08-13 13:54:32 +030057 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
58 })();
59 </script>
Vincent Chengb0ee8732014-02-21 22:52:06 -080060 <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
Victor Choueirid54283f2013-08-13 13:54:32 +030061 </div>
pR0Ps2fd93002015-01-11 13:46:27 -050062 {% endif %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010063</article>
Giulio Fidentea3296652013-03-28 11:30:46 +010064{% endblock %}
65