blob: c6a858292a8eac04714fb6e20ba93ff465764ee6 [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">
pR0Ps2fd93002015-01-11 13:46:27 -050023 <p>Posted <time 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 %}
pR0Ps441bfd22014-12-17 22:08:21 -050027 {% if article.modified %}
pR0Psbcaaaed2015-01-10 18:22:32 -050028 <p>Last updated <time datetime="{{ article.modified.isoformat() }}">{{ article.locale_modified }}</time></p>
pR0Ps441bfd22014-12-17 22:08:21 -050029 {% endif %}
pR0Psaeaf5f52014-09-30 21:41:06 -040030 </p>
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 %}
pR0Ps1a7a4782014-09-25 02:49:34 -040046 <div id="article_comments">
Victor Choueirid54283f2013-08-13 13:54:32 +030047 <div id="disqus_thread"></div>
48 <script type="text/javascript">
49 var disqus_identifier = "{{ article.url }}";
50 (function() {
51 var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
Vincent Cheng8d10ff22014-04-30 19:12:51 -070052 dsq.src = '//{{ DISQUS_SITENAME }}.disqus.com/embed.js';
Victor Choueirid54283f2013-08-13 13:54:32 +030053 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
54 })();
55 </script>
Vincent Chengb0ee8732014-02-21 22:52:06 -080056 <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 +030057 </div>
pR0Ps2fd93002015-01-11 13:46:27 -050058 {% endif %}
59
60 {% if FUZZY_DATES %}
61 {% block scripts %}
62 {{ super() }}
pR0Ps44f29b22015-01-11 22:20:52 -050063 <script type="text/javascript">window.addEventListener('load', function(){lw_timeago.doReplace()})</script>
pR0Ps2fd93002015-01-11 13:46:27 -050064 {% endblock %}
65 {% endif %}
66
Giulio Fidente44ccac72013-03-21 18:51:03 +010067</article>
Giulio Fidentea3296652013-03-28 11:30:46 +010068{% endblock %}
69