log reply to Jack
[Ultimately_Untrue_Thought.git] / theme / templates / article.html
1 {% extends "base.html" %}
2 {% block title %}{{ article.title }} - {{ SITENAME }}{% endblock %}
3
4 {% block extra_meta %}
5
6         <meta name="description" content="{{ article.summary|striptags }}">
7
8 {% if PELICAN_SIMPLEGREY_TWITTER_CARD_ACCOUNT %}
9         <meta name="twitter:card" content="summary">
10         <meta name="twitter:creator" content="@{{ PELICAN_SIMPLEGREY_TWITTER_CARD_ACCOUNT }}">
11         <meta name="twitter:title" content="{{ article.title }}">
12         <meta name="twitter:description" content="{{ article.summary|striptags }}">
13         <meta name="twitter:url" content="{{ SITEURL }}/{{ article.url }}">
14 {% endif %}
15 {% endblock %}
16
17
18 {% block content %}
19         <article class="full">
20                         
21                 <h1>{{ article.title }}</h1>
22                 
23                 {% include 'metadata.inc.html' %}
24                 
25                 {{ article.content }}   
26
27         </article>
28
29     <p>
30         <a href="https://twitter.com/share" class="twitter-share-button" data-via="{{ TWITTER_USERNAME }}" data-lang="en" data-size="large" data-related="{{ TWITTER_USERNAME }}">Tweet</a>
31         <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
32         </p>
33
34         {% if DISQUS_SITENAME %}
35         <div class="comments">
36         <h2>Comments !</h2>
37             <div id="disqus_thread"></div>
38             <script type="text/javascript">
39                var disqus_identifier = "{{ article.url }}";
40                (function() {
41                var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
42                dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
43                (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
44               })();
45             </script>
46         </div>
47         {% endif %}
48
49 {% endblock %}