blob: 48f4d4eb0ab1b799c792d01e3be442f7d762a9d1 [file] [log] [blame]
{% extends "base.html" %}
{% block head %}
<meta name="keywords" content="{{ article.tags|join(', ') }}">
{% endblock %}
{% block title %}{{ article.title }}{% endblock %}
{% block header %}
<p>Posted on {{ article.locale_date }}</p>
{% endblock %}
{% block content %}
<article>
<div class="article_title">
<h1><a href="{{ SITEURL }}/{{ article.url }}" class="nohover">{{ article.title }}</a></h1>
</div>
<div class="article_text">
{{ article.content }}
</div>
<div class="article_meta">
<p>Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></p>
{% if article.tags %}
<p>Tags:
{% for tag in article.tags %}
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %},{% endif %}
{% endfor %}
</p>
{% endif %}
{% if DISQUS_SITENAME %}
<p>Comments: <a href="#" onclick="javascript:toggleComments();return false;">toggle</a></p>
{% endif %}
</div>
{% if DISQUS_SITENAME %}
<div id="article_comments" style="display:{%if COLLAPSE_COMMENTS %}none{% else %}block{% endif %}">
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_identifier = "{{ article.url }}";
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
</div>
{% endif %}
</article>
{% endblock %}
{% block footer %}
<p><a href="{{ SITEURL }}/" class="button_accent">&larr; Back to Index</a></p>
<script language="javascript">
function toggleComments() {
var commentDiv = document.getElementById("article_comments");
(commentDiv.style.display == "none") ? commentDiv.style.display = "block" : commentDiv.style.display = "none";
return false;
}
</script>
{% endblock %}