blob: 7940c1104734b79305c54c428086d5eba10c6544 [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(', ') }}
pR0Ps86b80862014-09-25 02:41:07 -04006 {%- if article.tags -%}{{', '}}{%- endif -%}
pR0Ps02550b72013-12-17 17:03:38 -05007 {%- endif -%}
8 {{article.tags|join(', ') }}">
pR0Psfc48ff82015-01-15 01:32:41 -05009
10 {% if FUZZY_DATES %}
pR0Psa9f82032015-03-11 21:36:35 -040011 {% assets filters="slimit", output="js/lw-timeago.min.js", "js/lw-timeago/lw-timeago.js" %}
12 <script src="{{ SITEURL }}/{{ ASSET_URL }}" type="text/javascript"></script>
13 {% endassets%}
pR0Psfc48ff82015-01-15 01:32:41 -050014 {% endif %}
Giulio Fidente663537a2013-04-17 16:48:53 +020015{% endblock %}
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020016
pR0Ps86b80862014-09-25 02:41:07 -040017{% block title %}{{ article.title|striptags|escape }} | {{ SITENAME }}{% endblock %}
pR0Ps2d698922014-09-25 20:47:11 -040018{% block description %}{{ article.title|striptags|escape }} | {{ article.content|striptags|truncate(154-article.title|length)|escape }}{% endblock %}
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020019
Giulio Fidente44ccac72013-03-21 18:51:03 +010020{% block content %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010021<article>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010022 <div class="article_title">
pR0Ps41bf7d32013-12-05 16:33:55 -050023 <h1><a href="{{ SITEURL }}/{{ article.url }}" class="nohover">{{ article.title }}</a></h1>
Giulio Fidente5dba4772013-03-27 01:00:02 +010024 </div>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010025 <div class="article_text">
Giulio Fidente44ccac72013-03-21 18:51:03 +010026 {{ article.content }}
27 </div>
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +010028 <div class="article_meta">
pR0Psfc48ff82015-01-15 01:32:41 -050029 <p>Posted <time data-timeago datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
pR0Psaeaf5f52014-09-30 21:41:06 -040030 {% if article.author %}
31 by {% if AUTHORS_URL %} <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>{% else %}{{ article.author}}{% endif %}
32 {% endif %}
pR0Ps6d648322015-01-15 01:34:55 -050033 </p>
pR0Ps441bfd22014-12-17 22:08:21 -050034 {% if article.modified %}
pR0Psfc48ff82015-01-15 01:32:41 -050035 <p>Last updated <time data-timeago datetime="{{ article.modified.isoformat() }}">{{ article.locale_modified }}</time></p>
pR0Ps441bfd22014-12-17 22:08:21 -050036 {% endif %}
pR0Pscc0f61e2014-09-25 02:58:23 -040037 <p>
pR0Ps589f9bd2013-12-06 17:00:07 -050038 {% if CATEGORY_URL %}
pR0Pscc0f61e2014-09-25 02:58:23 -040039 Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
40 {% if TAG_URL and article.tags %}&ndash;&ndash;{% endif %}
pR0Ps589f9bd2013-12-06 17:00:07 -050041 {% endif %}
42 {% if TAG_URL and article.tags %}
pR0Pscc0f61e2014-09-25 02:58:23 -040043 Tags:
Giulio Fidente8305e742013-03-22 23:17:45 +010044 {% for tag in article.tags %}
Giulio Fidente91c1d452013-03-22 15:15:17 +010045 <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %},{% endif %}
Giulio Fidente8305e742013-03-22 23:17:45 +010046 {% endfor %}
47 </p>
Giulio Fidente44ccac72013-03-21 18:51:03 +010048 {% endif %}
49 </div>
Victor Choueirid54283f2013-08-13 13:54:32 +030050
51 {% if DISQUS_SITENAME %}
pR0Ps032e7d82015-02-07 01:43:51 -050052 <div id="article_comments">
53 <div id="disqus_thread">
54 {% if DISQUS_COLLAPSED %}
55 <a href="javascript:loadDisqus()"><i class="fa fa-comments fa-lg"></i>Click to load comments</a>
56 {% endif %}
Victor Choueirid54283f2013-08-13 13:54:32 +030057 </div>
pR0Ps032e7d82015-02-07 01:43:51 -050058 </div>
59
60 <script type="text/javascript">
61 var disqus_identifier = "{{ article.url }}";
62 loadDisqus = function() {
63 var dsq = document.createElement('script');
64 dsq.type = 'text/javascript';
65 dsq.async = true;
66 dsq.src = '//{{ DISQUS_SITENAME }}.disqus.com/embed.js';
67 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
68 };
69 {% if not DISQUS_COLLAPSED %}
70 loadDisqus();
71 {% endif %}
72 </script>
pR0Ps2fd93002015-01-11 13:46:27 -050073 {% endif %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010074</article>
Giulio Fidentea3296652013-03-28 11:30:46 +010075{% endblock %}
76
pR0Ps095ba342015-02-04 01:38:57 -050077{% block scripts %}
78{{ super() }}
79{% if FUZZY_DATES %}
80<script type="text/javascript">window.addEventListener("load", lw_timeago);</script>
81{% endif %}
82{% endblock %}