blob: 152565612540c78a899b50a0432e9a5ba946279b [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(', ') }}
6 {%- if article.tags -%}
7 {{', '}}
8 {%- endif -%}
9 {%- endif -%}
10 {{article.tags|join(', ') }}">
Giulio Fidente663537a2013-04-17 16:48:53 +020011{% endblock %}
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020012
pR0Ps6bf52272013-12-11 13:25:27 -050013{% block title %}{{ article.title }} | {{ SITENAME }}{% endblock %}
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020014
pR0Ps09af9c42013-12-06 04:51:29 -050015{% block subheader %}
pR0Ps589f9bd2013-12-06 17:00:07 -050016<p>Posted
17{% if article.author %}
18 by{% if AUTHORS_URL %}
19 <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
20{% else %}
21 {{ article.author}}
22{% endif %}
23{% endif %}
24on {{ article.locale_date }}</p>
Giulio Fidentea3296652013-03-28 11:30:46 +010025{% endblock %}
26
Giulio Fidente44ccac72013-03-21 18:51:03 +010027{% block content %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010028<article>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010029 <div class="article_title">
pR0Ps41bf7d32013-12-05 16:33:55 -050030 <h1><a href="{{ SITEURL }}/{{ article.url }}" class="nohover">{{ article.title }}</a></h1>
Giulio Fidente5dba4772013-03-27 01:00:02 +010031 </div>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010032 <div class="article_text">
Giulio Fidente44ccac72013-03-21 18:51:03 +010033 {{ article.content }}
34 </div>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010035 <div class="article_meta">
pR0Ps589f9bd2013-12-06 17:00:07 -050036 {% if CATEGORY_URL %}
Giulio Fidente8305e742013-03-22 23:17:45 +010037 <p>Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></p>
pR0Ps589f9bd2013-12-06 17:00:07 -050038 {% endif %}
39 {% if TAG_URL and article.tags %}
Giulio Fidente8305e742013-03-22 23:17:45 +010040 <p>Tags:
41 {% for tag in article.tags %}
Giulio Fidente91c1d452013-03-22 15:15:17 +010042 <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %},{% endif %}
Giulio Fidente8305e742013-03-22 23:17:45 +010043 {% endfor %}
44 </p>
Giulio Fidente44ccac72013-03-21 18:51:03 +010045 {% endif %}
Victor Choueiri79840b12013-08-20 18:00:26 +030046 {% if DISQUS_SITENAME %}
Vincent Cheng5ab7dde2014-02-21 02:08:50 -080047 {% if COLLAPSE_COMMENTS %}
48 <p>Comments: <a href="#" onclick="javascript:toggleComments();return false;">toggle</a></p>
49 {% endif %}
Victor Choueiri79840b12013-08-20 18:00:26 +030050 {% endif %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010051 </div>
Victor Choueirid54283f2013-08-13 13:54:32 +030052
53 {% if DISQUS_SITENAME %}
pR0Ps721949b2013-12-11 13:09:22 -050054
55 {% if COLLAPSE_COMMENTS %}
56 <script language="javascript">
57 function toggleComments() {
58 var commentDiv = document.getElementById("article_comments");
59 (commentDiv.style.display == "none") ? commentDiv.style.display = "block" : commentDiv.style.display = "none";
60 return false;
61 }
62 </script>
63 {% endif %}
Victor Choueiri79840b12013-08-20 18:00:26 +030064 <div id="article_comments" style="display:{%if COLLAPSE_COMMENTS %}none{% else %}block{% endif %}">
Victor Choueirid54283f2013-08-13 13:54:32 +030065 <div id="disqus_thread"></div>
66 <script type="text/javascript">
67 var disqus_identifier = "{{ article.url }}";
68 (function() {
69 var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
70 dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
71 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
72 })();
73 </script>
Vincent Chengb0ee8732014-02-21 22:52:06 -080074 <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 +030075 </div>
76 {% endif %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010077</article>
Giulio Fidentea3296652013-03-28 11:30:46 +010078{% endblock %}
79