blob: 5ae60116bd2553eee8fc4afa1cfa1243aa7d3547 [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 %}
pR0Ps277fab82014-09-25 01:52:29 -040014{% block description %}{{ article.title }} | {{ article.content|striptags|truncate(250)|escape }}{% endblock %}
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020015
pR0Ps09af9c42013-12-06 04:51:29 -050016{% block subheader %}
pR0Ps589f9bd2013-12-06 17:00:07 -050017<p>Posted
18{% if article.author %}
19 by{% if AUTHORS_URL %}
20 <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
21{% else %}
22 {{ article.author}}
23{% endif %}
24{% endif %}
25on {{ article.locale_date }}</p>
Giulio Fidentea3296652013-03-28 11:30:46 +010026{% endblock %}
27
Giulio Fidente44ccac72013-03-21 18:51:03 +010028{% block content %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010029<article>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010030 <div class="article_title">
pR0Ps41bf7d32013-12-05 16:33:55 -050031 <h1><a href="{{ SITEURL }}/{{ article.url }}" class="nohover">{{ article.title }}</a></h1>
Giulio Fidente5dba4772013-03-27 01:00:02 +010032 </div>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010033 <div class="article_text">
Giulio Fidente44ccac72013-03-21 18:51:03 +010034 {{ article.content }}
35 </div>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010036 <div class="article_meta">
pR0Ps589f9bd2013-12-06 17:00:07 -050037 {% if CATEGORY_URL %}
Giulio Fidente8305e742013-03-22 23:17:45 +010038 <p>Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></p>
pR0Ps589f9bd2013-12-06 17:00:07 -050039 {% endif %}
40 {% if TAG_URL and article.tags %}
Giulio Fidente8305e742013-03-22 23:17:45 +010041 <p>Tags:
42 {% 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 %}
Victor Choueiri79840b12013-08-20 18:00:26 +030047 {% if DISQUS_SITENAME %}
Vincent Cheng5ab7dde2014-02-21 02:08:50 -080048 {% if COLLAPSE_COMMENTS %}
49 <p>Comments: <a href="#" onclick="javascript:toggleComments();return false;">toggle</a></p>
50 {% endif %}
Victor Choueiri79840b12013-08-20 18:00:26 +030051 {% endif %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010052 </div>
Victor Choueirid54283f2013-08-13 13:54:32 +030053
54 {% if DISQUS_SITENAME %}
pR0Ps721949b2013-12-11 13:09:22 -050055
56 {% if COLLAPSE_COMMENTS %}
57 <script language="javascript">
58 function toggleComments() {
59 var commentDiv = document.getElementById("article_comments");
60 (commentDiv.style.display == "none") ? commentDiv.style.display = "block" : commentDiv.style.display = "none";
61 return false;
62 }
63 </script>
64 {% endif %}
Victor Choueiri79840b12013-08-20 18:00:26 +030065 <div id="article_comments" style="display:{%if COLLAPSE_COMMENTS %}none{% else %}block{% endif %}">
Victor Choueirid54283f2013-08-13 13:54:32 +030066 <div id="disqus_thread"></div>
67 <script type="text/javascript">
68 var disqus_identifier = "{{ article.url }}";
69 (function() {
70 var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
Vincent Cheng8d10ff22014-04-30 19:12:51 -070071 dsq.src = '//{{ DISQUS_SITENAME }}.disqus.com/embed.js';
Victor Choueirid54283f2013-08-13 13:54:32 +030072 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
73 })();
74 </script>
Vincent Chengb0ee8732014-02-21 22:52:06 -080075 <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 +030076 </div>
77 {% endif %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010078</article>
Giulio Fidentea3296652013-03-28 11:30:46 +010079{% endblock %}
80