blob: 57c8d44fa3ec0c0d7537d83c18e3fb33a871503c [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 %}
12{% block description %}{{ article.title|striptags|escape }} | {{ article.content|striptags|truncate(250)|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">
pR0Ps589f9bd2013-12-06 17:00:07 -050035 {% if CATEGORY_URL %}
Giulio Fidente8305e742013-03-22 23:17:45 +010036 <p>Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></p>
pR0Ps589f9bd2013-12-06 17:00:07 -050037 {% endif %}
38 {% if TAG_URL and article.tags %}
Giulio Fidente8305e742013-03-22 23:17:45 +010039 <p>Tags:
40 {% for tag in article.tags %}
Giulio Fidente91c1d452013-03-22 15:15:17 +010041 <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %},{% endif %}
Giulio Fidente8305e742013-03-22 23:17:45 +010042 {% endfor %}
43 </p>
Giulio Fidente44ccac72013-03-21 18:51:03 +010044 {% endif %}
45 </div>
Victor Choueirid54283f2013-08-13 13:54:32 +030046
47 {% if DISQUS_SITENAME %}
pR0Ps1a7a4782014-09-25 02:49:34 -040048 <div id="article_comments">
Victor Choueirid54283f2013-08-13 13:54:32 +030049 <div id="disqus_thread"></div>
50 <script type="text/javascript">
51 var disqus_identifier = "{{ article.url }}";
52 (function() {
53 var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
Vincent Cheng8d10ff22014-04-30 19:12:51 -070054 dsq.src = '//{{ DISQUS_SITENAME }}.disqus.com/embed.js';
Victor Choueirid54283f2013-08-13 13:54:32 +030055 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
56 })();
57 </script>
Vincent Chengb0ee8732014-02-21 22:52:06 -080058 <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 +030059 </div>
60 {% endif %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010061</article>
Giulio Fidentea3296652013-03-28 11:30:46 +010062{% endblock %}
63