first version of the new website
[markerbeacon.git] / themes / notmyidea / templates / article.html
1 {% extends "base.html" %}
2 {% block html_lang %}{{ article.lang }}{% endblock %}
3 {% block head -%}
4   {{ super() -}}
5   {% if article.summary %}
6         <meta name="description" content="{{ article.summary | striptags | safe | truncate(150) }}" />
7   {% endif %}
8 {% endblock %}
9
10 {% block title %}{{ article.title|striptags }}{% endblock %}
11
12 {% block extra_head %}
13 {% import 'translations.html' as translations with context %}
14 {% if translations.entry_hreflang(article) %}
15   {{ translations.entry_hreflang(article) }}
16 {% endif %}
17 {% endblock %}
18
19 {% block content %}
20 <section id="content" class="body">
21   <article>
22     <header>
23       <h1 class="entry-title">
24         <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
25            title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h1>
26       {% include 'twitter.html' %}
27     </header>
28
29     <div class="entry-content">
30       {% include 'article_infos.html' %}
31       {{ article.content }}
32     </div><!-- /.entry-content -->
33     {% if DISQUS_SITENAME and SITEURL and article.status != "draft" %}
34     <div class="comments">
35       <h2>Comments !</h2>
36       <div id="disqus_thread"></div>
37       <script type="text/javascript">
38         var disqus_shortname = '{{ DISQUS_SITENAME }}';
39         var disqus_identifier = '{{ article.url }}';
40         var disqus_url = '{{ SITEURL }}/{{ article.url }}';
41         (function() {
42         var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
43         dsq.src = '//{{ DISQUS_SITENAME }}.disqus.com/embed.js';
44         (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
45         })();
46       </script>
47       <noscript>Please enable JavaScript to view the comments.</noscript>
48     </div>
49     {% endif %}
50
51   </article>
52 </section>
53 {% endblock %}