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 %} |
pR0Ps | 02550b7 | 2013-12-17 17:03:38 -0500 | [diff] [blame] | 3 | <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 Fidente | 663537a | 2013-04-17 16:48:53 +0200 | [diff] [blame] | 11 | {% endblock %} |
Giulio Fidente | da4d95b | 2013-04-29 15:59:35 +0200 | [diff] [blame] | 12 | |
pR0Ps | 6bf5227 | 2013-12-11 13:25:27 -0500 | [diff] [blame] | 13 | {% block title %}{{ article.title }} | {{ SITENAME }}{% endblock %} |
Giulio Fidente | da4d95b | 2013-04-29 15:59:35 +0200 | [diff] [blame] | 14 | |
pR0Ps | 09af9c4 | 2013-12-06 04:51:29 -0500 | [diff] [blame] | 15 | {% block subheader %} |
pR0Ps | 589f9bd | 2013-12-06 17:00:07 -0500 | [diff] [blame] | 16 | <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 %} |
| 24 | on {{ article.locale_date }}</p> |
Giulio Fidente | a329665 | 2013-03-28 11:30:46 +0100 | [diff] [blame] | 25 | {% endblock %} |
| 26 | |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 27 | {% block content %} |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 28 | <article> |
Giulio Fidente | 0bc1f0e | 2013-11-05 16:23:23 +0100 | [diff] [blame] | 29 | <div class="article_title"> |
pR0Ps | 41bf7d3 | 2013-12-05 16:33:55 -0500 | [diff] [blame] | 30 | <h1><a href="{{ SITEURL }}/{{ article.url }}" class="nohover">{{ article.title }}</a></h1> |
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 31 | </div> |
Giulio Fidente | 0bc1f0e | 2013-11-05 16:23:23 +0100 | [diff] [blame] | 32 | <div class="article_text"> |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 33 | {{ article.content }} |
| 34 | </div> |
Giulio Fidente | 0bc1f0e | 2013-11-05 16:23:23 +0100 | [diff] [blame] | 35 | <div class="article_meta"> |
pR0Ps | 589f9bd | 2013-12-06 17:00:07 -0500 | [diff] [blame] | 36 | {% if CATEGORY_URL %} |
Giulio Fidente | 8305e74 | 2013-03-22 23:17:45 +0100 | [diff] [blame] | 37 | <p>Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></p> |
pR0Ps | 589f9bd | 2013-12-06 17:00:07 -0500 | [diff] [blame] | 38 | {% endif %} |
| 39 | {% if TAG_URL and article.tags %} |
Giulio Fidente | 8305e74 | 2013-03-22 23:17:45 +0100 | [diff] [blame] | 40 | <p>Tags: |
| 41 | {% for tag in article.tags %} |
Giulio Fidente | 91c1d45 | 2013-03-22 15:15:17 +0100 | [diff] [blame] | 42 | <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %},{% endif %} |
Giulio Fidente | 8305e74 | 2013-03-22 23:17:45 +0100 | [diff] [blame] | 43 | {% endfor %} |
| 44 | </p> |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 45 | {% endif %} |
Victor Choueiri | 79840b1 | 2013-08-20 18:00:26 +0300 | [diff] [blame] | 46 | {% if DISQUS_SITENAME %} |
Vincent Cheng | 5ab7dde | 2014-02-21 02:08:50 -0800 | [diff] [blame] | 47 | {% if COLLAPSE_COMMENTS %} |
| 48 | <p>Comments: <a href="#" onclick="javascript:toggleComments();return false;">toggle</a></p> |
| 49 | {% endif %} |
Victor Choueiri | 79840b1 | 2013-08-20 18:00:26 +0300 | [diff] [blame] | 50 | {% endif %} |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 51 | </div> |
Victor Choueiri | d54283f | 2013-08-13 13:54:32 +0300 | [diff] [blame] | 52 | |
| 53 | {% if DISQUS_SITENAME %} |
pR0Ps | 721949b | 2013-12-11 13:09:22 -0500 | [diff] [blame] | 54 | |
| 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 Choueiri | 79840b1 | 2013-08-20 18:00:26 +0300 | [diff] [blame] | 64 | <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] | 65 | <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 Cheng | b0ee873 | 2014-02-21 22:52:06 -0800 | [diff] [blame^] | 74 | <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> |
Victor Choueiri | d54283f | 2013-08-13 13:54:32 +0300 | [diff] [blame] | 75 | </div> |
| 76 | {% endif %} |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 77 | </article> |
Giulio Fidente | a329665 | 2013-03-28 11:30:46 +0100 | [diff] [blame] | 78 | {% endblock %} |
| 79 | |