blob: afe6a8b179a4768db4ae0e928166e8e7cfb8afbf [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
pR0Ps09af9c42013-12-06 04:51:29 -050014{% block subheader %}
pR0Ps589f9bd2013-12-06 17:00:07 -050015<p>Posted
16{% if article.author %}
17 by{% if AUTHORS_URL %}
18 <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
19{% else %}
20 {{ article.author}}
21{% endif %}
22{% endif %}
23on {{ article.locale_date }}</p>
Giulio Fidentea3296652013-03-28 11:30:46 +010024{% endblock %}
25
Giulio Fidente44ccac72013-03-21 18:51:03 +010026{% block content %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010027<article>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010028 <div class="article_title">
pR0Ps41bf7d32013-12-05 16:33:55 -050029 <h1><a href="{{ SITEURL }}/{{ article.url }}" class="nohover">{{ article.title }}</a></h1>
Giulio Fidente5dba4772013-03-27 01:00:02 +010030 </div>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010031 <div class="article_text">
Giulio Fidente44ccac72013-03-21 18:51:03 +010032 {{ article.content }}
33 </div>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010034 <div class="article_meta">
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>
62 {% endif %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010063</article>
Giulio Fidentea3296652013-03-28 11:30:46 +010064{% endblock %}
65