blob: bae03bf0ba8c1b3210ce89d917c35dd8ec1be50d [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
pR0Ps6bf52272013-12-11 13:25:27 -05006{% block title %}{{ article.title }} | {{ SITENAME }}{% endblock %}
Giulio Fidenteda4d95b2013-04-29 15:59:35 +02007
pR0Ps09af9c42013-12-06 04:51:29 -05008{% block subheader %}
pR0Ps589f9bd2013-12-06 17:00:07 -05009<p>Posted
10{% if article.author %}
11 by{% if AUTHORS_URL %}
12 <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
13{% else %}
14 {{ article.author}}
15{% endif %}
16{% endif %}
17on {{ article.locale_date }}</p>
Giulio Fidentea3296652013-03-28 11:30:46 +010018{% endblock %}
19
Giulio Fidente44ccac72013-03-21 18:51:03 +010020{% block content %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010021<article>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010022 <div class="article_title">
pR0Ps41bf7d32013-12-05 16:33:55 -050023 <h1><a href="{{ SITEURL }}/{{ article.url }}" class="nohover">{{ article.title }}</a></h1>
Giulio Fidente5dba4772013-03-27 01:00:02 +010024 </div>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010025 <div class="article_text">
Giulio Fidente44ccac72013-03-21 18:51:03 +010026 {{ article.content }}
27 </div>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010028 <div class="article_meta">
pR0Ps589f9bd2013-12-06 17:00:07 -050029 {% if CATEGORY_URL %}
Giulio Fidente8305e742013-03-22 23:17:45 +010030 <p>Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></p>
pR0Ps589f9bd2013-12-06 17:00:07 -050031 {% endif %}
32 {% if TAG_URL and article.tags %}
Giulio Fidente8305e742013-03-22 23:17:45 +010033 <p>Tags:
34 {% for tag in article.tags %}
Giulio Fidente91c1d452013-03-22 15:15:17 +010035 <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %},{% endif %}
Giulio Fidente8305e742013-03-22 23:17:45 +010036 {% endfor %}
37 </p>
Giulio Fidente44ccac72013-03-21 18:51:03 +010038 {% endif %}
Victor Choueiri79840b12013-08-20 18:00:26 +030039 {% if DISQUS_SITENAME %}
Victor Choueiri2c25ad42013-08-21 20:04:39 +030040 <p>Comments: <a href="#" onclick="javascript:toggleComments();return false;">toggle</a></p>
Victor Choueiri79840b12013-08-20 18:00:26 +030041 {% endif %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010042 </div>
Victor Choueirid54283f2013-08-13 13:54:32 +030043
44 {% if DISQUS_SITENAME %}
Victor Choueiri79840b12013-08-20 18:00:26 +030045 <div id="article_comments" style="display:{%if COLLAPSE_COMMENTS %}none{% else %}block{% endif %}">
Victor Choueirid54283f2013-08-13 13:54:32 +030046 <div id="disqus_thread"></div>
47 <script type="text/javascript">
48 var disqus_identifier = "{{ article.url }}";
49 (function() {
50 var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
51 dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
52 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
53 })();
54 </script>
55 </div>
56 {% endif %}
57
Giulio Fidente44ccac72013-03-21 18:51:03 +010058</article>
Giulio Fidentea3296652013-03-28 11:30:46 +010059{% endblock %}
60
61{% block footer %}
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020062<p><a href="{{ SITEURL }}/" class="button_accent">&larr; Back to Index</a></p>
Victor Choueiri79840b12013-08-20 18:00:26 +030063<script language="javascript">
64 function toggleComments() {
65 var commentDiv = document.getElementById("article_comments");
66 (commentDiv.style.display == "none") ? commentDiv.style.display = "block" : commentDiv.style.display = "none";
67 return false;
68 }
69</script>
Giulio Fidente44ccac72013-03-21 18:51:03 +010070{% endblock %}