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(', ') }} |
pR0Ps | 86b8086 | 2014-09-25 02:41:07 -0400 | [diff] [blame] | 6 | {%- if article.tags -%}{{', '}}{%- endif -%} |
pR0Ps | 02550b7 | 2013-12-17 17:03:38 -0500 | [diff] [blame] | 7 | {%- endif -%} |
| 8 | {{article.tags|join(', ') }}"> |
Giulio Fidente | 663537a | 2013-04-17 16:48:53 +0200 | [diff] [blame] | 9 | {% endblock %} |
Giulio Fidente | da4d95b | 2013-04-29 15:59:35 +0200 | [diff] [blame] | 10 | |
pR0Ps | 86b8086 | 2014-09-25 02:41:07 -0400 | [diff] [blame] | 11 | {% block title %}{{ article.title|striptags|escape }} | {{ SITENAME }}{% endblock %} |
pR0Ps | 2d69892 | 2014-09-25 20:47:11 -0400 | [diff] [blame] | 12 | {% block description %}{{ article.title|striptags|escape }} | {{ article.content|striptags|truncate(154-article.title|length)|escape }}{% endblock %} |
Giulio Fidente | da4d95b | 2013-04-29 15:59:35 +0200 | [diff] [blame] | 13 | |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 14 | {% block content %} |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 15 | <article> |
Justin Montgomery | 42131ff | 2016-05-04 17:32:21 -0700 | [diff] [blame] | 16 | {% if DISPLAY_META_ABOVE_ARTICLE %} |
| 17 | {% include "modules/article_meta.html" %} |
| 18 | {% endif %} |
Giulio Fidente | 0bc1f0e | 2013-11-05 16:23:23 +0100 | [diff] [blame] | 19 | <div class="article_title"> |
pR0Ps | 41bf7d3 | 2013-12-05 16:33:55 -0500 | [diff] [blame] | 20 | <h1><a href="{{ SITEURL }}/{{ article.url }}" class="nohover">{{ article.title }}</a></h1> |
Luigi Santivetti | d93cb0f | 2020-02-17 22:21:28 +0000 | [diff] [blame^] | 21 | {% if DISPLAY_SUBTITLE %} |
| 22 | <h4>{{ article.subtitle }}</a></h4> |
| 23 | {% endif %} |
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> |
Luigi Santivetti | d93cb0f | 2020-02-17 22:21:28 +0000 | [diff] [blame^] | 28 | {% if article.photo_gallery %} |
| 29 | <div class="gallery"> |
| 30 | {% for title, gallery in article.photo_gallery %} |
| 31 | <h1>{{ title }}</h1> |
| 32 | {% for name, photo, thumb, exif, caption in gallery %} |
| 33 | <a href="{{ SITEURL }}/{{ photo }}" title="{{ name }}" exif="{{ exif }}" caption="{{ caption }}"><img src="{{ SITEURL }}/{{ thumb }}"></a> |
| 34 | {% endfor %} |
| 35 | {% endfor %} |
| 36 | </div> |
| 37 | {% endif %} |
Justin Montgomery | 42131ff | 2016-05-04 17:32:21 -0700 | [diff] [blame] | 38 | {% if not DISPLAY_META_ABOVE_ARTICLE %} |
| 39 | {% include "modules/article_meta.html" %} |
| 40 | {% endif %} |
Victor Choueiri | d54283f | 2013-08-13 13:54:32 +0300 | [diff] [blame] | 41 | |
| 42 | {% if DISQUS_SITENAME %} |
pR0Ps | 032e7d8 | 2015-02-07 01:43:51 -0500 | [diff] [blame] | 43 | <div id="article_comments"> |
| 44 | <div id="disqus_thread"> |
| 45 | {% if DISQUS_COLLAPSED %} |
Carey Metcalfe | efe7193 | 2016-03-12 15:30:01 -0500 | [diff] [blame] | 46 | <a href="javascript:loadDisqus()"><i class="fa fa-comments fa-lg"></i>Click to load <span class="disqus-comment-count" data-disqus-identifier="{{ article.url }}">comments</span></a> |
pR0Ps | 032e7d8 | 2015-02-07 01:43:51 -0500 | [diff] [blame] | 47 | {% endif %} |
Victor Choueiri | d54283f | 2013-08-13 13:54:32 +0300 | [diff] [blame] | 48 | </div> |
pR0Ps | 032e7d8 | 2015-02-07 01:43:51 -0500 | [diff] [blame] | 49 | </div> |
| 50 | |
Carey Metcalfe | efe7193 | 2016-03-12 15:30:01 -0500 | [diff] [blame] | 51 | <script id="dsq-count-scr" src="https://{{ DISQUS_SITENAME }}.disqus.com/count.js" async></script> |
pR0Ps | 032e7d8 | 2015-02-07 01:43:51 -0500 | [diff] [blame] | 52 | <script type="text/javascript"> |
Carey Metcalfe | ef1e0cb | 2016-03-12 14:15:42 -0500 | [diff] [blame] | 53 | var disqus_config = function () { |
| 54 | this.page.identifier = "{{ article.url }}"; |
| 55 | this.page.title = "{{ article.title }}"; |
| 56 | }; |
| 57 | loadDisqus = function(sitename) { |
| 58 | var d = document, s = d.createElement('script'); |
| 59 | s.src = 'https://{{ DISQUS_SITENAME }}.disqus.com/embed.js'; |
| 60 | s.setAttribute('data-timestamp', +new Date()); |
| 61 | (d.head || d.body).appendChild(s); |
pR0Ps | 032e7d8 | 2015-02-07 01:43:51 -0500 | [diff] [blame] | 62 | }; |
| 63 | {% if not DISQUS_COLLAPSED %} |
| 64 | loadDisqus(); |
| 65 | {% endif %} |
| 66 | </script> |
pR0Ps | 2fd9300 | 2015-01-11 13:46:27 -0500 | [diff] [blame] | 67 | {% endif %} |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 68 | </article> |
Giulio Fidente | a329665 | 2013-03-28 11:30:46 +0100 | [diff] [blame] | 69 | {% endblock %} |
| 70 | |
pR0Ps | 095ba34 | 2015-02-04 01:38:57 -0500 | [diff] [blame] | 71 | {% block scripts %} |
| 72 | {{ super() }} |
| 73 | {% if FUZZY_DATES %} |
| 74 | <script type="text/javascript">window.addEventListener("load", lw_timeago);</script> |
| 75 | {% endif %} |
| 76 | {% endblock %} |