paste "My Price for Joining" into the main thread
[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           <!-- Twitter social -->
31           <a href="https://twitter.com/share" class="twitter-share-button" data-lang="en" data-size="large">Tweet</a>
32           <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>
33
34           <!-- Reddit social -->
35           <script type="text/javascript" src="//www.redditstatic.com/button/button3.js"></script>
36         </p>
37
38         {% if DISQUS_SITENAME %}
39         <div class="comments">
40         <h2>Comments !</h2>
41             <div id="disqus_thread"></div>
42             <script type="text/javascript">
43                var disqus_identifier = "{{ article.url }}";
44                (function() {
45                var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
46                dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
47                (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
48               })();
49             </script>
50         </div>
51         {% endif %}
52
53 {% endblock %}