aboutsummaryrefslogblamecommitdiffstats
path: root/monospace/templates/article.html
blob: 722e5c5975aa1418ecae2c598c189a7fff0003d1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                                                                              
















                                                                            

              
{% extends "base.html" %}
{% block title %}{{ super() }} : {{ article.title }}{% endblock %}
{% block content %}        
<header>
<h1><a href="{{ SITEURL }}" id="site-title"> {#{{ SITENAME }}#} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> {#:#}
        <a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
    {% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %}
</header>
<article>
    {{ article.content }}
    {% if DISQUS_SITENAME and SITEURL and article.status != "draft" %}
    <h2>Comments</h2>
    <div id="disqus_thread"></div>
    <script type="text/javascript">
       var disqus_shortname = '{{ DISQUS_SITENAME }}';
       var disqus_identifier = '{{ article.url }}';
       var disqus_url = '{{ SITEURL }}/{{ article.url }}';
       (function() {
            var dsq = document.createElement('script');
            dsq.type = 'text/javascript'; dsq.async = true;
            dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
            (document.getElementsByTagName('head')[0] ||
             document.getElementsByTagName('body')[0]).appendChild(dsq);
      })();
    </script>
    <noscript>Please enable JavaScript to view the comments.</noscript>
    {% endif %}
</article>
{% endblock %}