Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 1 | {% extends "base.html" %} |
Giulio Fidente | 663537a | 2013-04-17 16:48:53 +0200 | [diff] [blame] | 2 | {% block head %} |
| 3 | <meta name="keywords" content="{{ article.tags|join(', ') }}"> |
| 4 | {% endblock %} |
Giulio Fidente | da4d95b | 2013-04-29 15:59:35 +0200 | [diff] [blame] | 5 | |
pR0Ps | 6bf5227 | 2013-12-11 13:25:27 -0500 | [diff] [blame^] | 6 | {% block title %}{{ article.title }} | {{ SITENAME }}{% endblock %} |
Giulio Fidente | da4d95b | 2013-04-29 15:59:35 +0200 | [diff] [blame] | 7 | |
pR0Ps | 09af9c4 | 2013-12-06 04:51:29 -0500 | [diff] [blame] | 8 | {% block subheader %} |
pR0Ps | 589f9bd | 2013-12-06 17:00:07 -0500 | [diff] [blame] | 9 | <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 %} |
| 17 | on {{ article.locale_date }}</p> |
Giulio Fidente | a329665 | 2013-03-28 11:30:46 +0100 | [diff] [blame] | 18 | {% endblock %} |
| 19 | |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 20 | {% block content %} |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 21 | <article> |
Giulio Fidente | 0bc1f0e | 2013-11-05 16:23:23 +0100 | [diff] [blame] | 22 | <div class="article_title"> |
pR0Ps | 41bf7d3 | 2013-12-05 16:33:55 -0500 | [diff] [blame] | 23 | <h1><a href="{{ SITEURL }}/{{ article.url }}" class="nohover">{{ article.title }}</a></h1> |
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 24 | </div> |
Giulio Fidente | 0bc1f0e | 2013-11-05 16:23:23 +0100 | [diff] [blame] | 25 | <div class="article_text"> |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 26 | {{ article.content }} |
| 27 | </div> |
Giulio Fidente | 0bc1f0e | 2013-11-05 16:23:23 +0100 | [diff] [blame] | 28 | <div class="article_meta"> |
pR0Ps | 589f9bd | 2013-12-06 17:00:07 -0500 | [diff] [blame] | 29 | {% if CATEGORY_URL %} |
Giulio Fidente | 8305e74 | 2013-03-22 23:17:45 +0100 | [diff] [blame] | 30 | <p>Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></p> |
pR0Ps | 589f9bd | 2013-12-06 17:00:07 -0500 | [diff] [blame] | 31 | {% endif %} |
| 32 | {% if TAG_URL and article.tags %} |
Giulio Fidente | 8305e74 | 2013-03-22 23:17:45 +0100 | [diff] [blame] | 33 | <p>Tags: |
| 34 | {% for tag in article.tags %} |
Giulio Fidente | 91c1d45 | 2013-03-22 15:15:17 +0100 | [diff] [blame] | 35 | <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %},{% endif %} |
Giulio Fidente | 8305e74 | 2013-03-22 23:17:45 +0100 | [diff] [blame] | 36 | {% endfor %} |
| 37 | </p> |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 38 | {% endif %} |
Victor Choueiri | 79840b1 | 2013-08-20 18:00:26 +0300 | [diff] [blame] | 39 | {% if DISQUS_SITENAME %} |
Victor Choueiri | 2c25ad4 | 2013-08-21 20:04:39 +0300 | [diff] [blame] | 40 | <p>Comments: <a href="#" onclick="javascript:toggleComments();return false;">toggle</a></p> |
Victor Choueiri | 79840b1 | 2013-08-20 18:00:26 +0300 | [diff] [blame] | 41 | {% endif %} |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 42 | </div> |
Victor Choueiri | d54283f | 2013-08-13 13:54:32 +0300 | [diff] [blame] | 43 | |
| 44 | {% if DISQUS_SITENAME %} |
Victor Choueiri | 79840b1 | 2013-08-20 18:00:26 +0300 | [diff] [blame] | 45 | <div id="article_comments" style="display:{%if COLLAPSE_COMMENTS %}none{% else %}block{% endif %}"> |
Victor Choueiri | d54283f | 2013-08-13 13:54:32 +0300 | [diff] [blame] | 46 | <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 Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 58 | </article> |
Giulio Fidente | a329665 | 2013-03-28 11:30:46 +0100 | [diff] [blame] | 59 | {% endblock %} |
| 60 | |
| 61 | {% block footer %} |
Giulio Fidente | da4d95b | 2013-04-29 15:59:35 +0200 | [diff] [blame] | 62 | <p><a href="{{ SITEURL }}/" class="button_accent">← Back to Index</a></p> |
Victor Choueiri | 79840b1 | 2013-08-20 18:00:26 +0300 | [diff] [blame] | 63 | <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 Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 70 | {% endblock %} |