blob: e90eaa8b6444d707970f6de3ff57d6f8aea9c0c9 [file] [log] [blame]
Giulio Fidente44ccac72013-03-21 18:51:03 +01001{% extends "base.html" %}
Giulio Fidente663537a2013-04-17 16:48:53 +02002{% block head %}
3<meta name="keywords" content="{{ article.tags|join(', ') }}">
4{% endblock %}
Giulio Fidenteda4d95b2013-04-29 15:59:35 +02005
Giulio Fidente663537a2013-04-17 16:48:53 +02006{% block title %}{{ article.title }}{% endblock %}
Giulio Fidenteda4d95b2013-04-29 15:59:35 +02007
Giulio Fidentea3296652013-03-28 11:30:46 +01008{% block header %}
Giulio Fidenteda4d95b2013-04-29 15:59:35 +02009<p>Posted on {{ article.locale_date }}</p>
Giulio Fidentea3296652013-03-28 11:30:46 +010010{% endblock %}
11
Giulio Fidente44ccac72013-03-21 18:51:03 +010012{% block content %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010013<article>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010014 <div class="article_title">
Giulio Fidente35812c22013-04-30 02:01:40 +020015 <h3><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h3>
Giulio Fidente5dba4772013-03-27 01:00:02 +010016 </div>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010017 <div class="article_text">
Giulio Fidente44ccac72013-03-21 18:51:03 +010018 {{ article.content }}
19 </div>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010020 <div class="article_meta">
Giulio Fidente8305e742013-03-22 23:17:45 +010021 <p>Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></p>
Giulio Fidente44ccac72013-03-21 18:51:03 +010022 {% if article.tags %}
Giulio Fidente8305e742013-03-22 23:17:45 +010023 <p>Tags:
24 {% for tag in article.tags %}
Giulio Fidente91c1d452013-03-22 15:15:17 +010025 <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %},{% endif %}
Giulio Fidente8305e742013-03-22 23:17:45 +010026 {% endfor %}
27 </p>
Giulio Fidente44ccac72013-03-21 18:51:03 +010028 {% endif %}
Victor Choueiri79840b12013-08-20 18:00:26 +030029 {% if DISQUS_SITENAME %}
Victor Choueiri2c25ad42013-08-21 20:04:39 +030030 <p>Comments: <a href="#" onclick="javascript:toggleComments();return false;">toggle</a></p>
Victor Choueiri79840b12013-08-20 18:00:26 +030031 {% endif %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010032 </div>
Victor Choueirid54283f2013-08-13 13:54:32 +030033
34 {% if DISQUS_SITENAME %}
Victor Choueiri79840b12013-08-20 18:00:26 +030035 <div id="article_comments" style="display:{%if COLLAPSE_COMMENTS %}none{% else %}block{% endif %}">
Victor Choueirid54283f2013-08-13 13:54:32 +030036 <div id="disqus_thread"></div>
37 <script type="text/javascript">
38 var disqus_identifier = "{{ article.url }}";
39 (function() {
40 var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
41 dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
42 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
43 })();
44 </script>
45 </div>
46 {% endif %}
47
Giulio Fidente44ccac72013-03-21 18:51:03 +010048</article>
Giulio Fidentea3296652013-03-28 11:30:46 +010049{% endblock %}
50
51{% block footer %}
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020052<p><a href="{{ SITEURL }}/" class="button_accent">&larr; Back to Index</a></p>
Victor Choueiri79840b12013-08-20 18:00:26 +030053<script language="javascript">
54 function toggleComments() {
55 var commentDiv = document.getElementById("article_comments");
56 (commentDiv.style.display == "none") ? commentDiv.style.display = "block" : commentDiv.style.display = "none";
57 return false;
58 }
59</script>
Giulio Fidente44ccac72013-03-21 18:51:03 +010060{% endblock %}