monospace/templates/article.html

34 lines
1.3 KiB
HTML
Raw Normal View History

2019-03-06 17:01:54 -05:00
{% extends "base.html" %}
{% block title %}{{ super() }} : {{ article.title }}{% endblock %}
{% block content %}
2022-08-04 09:41:15 -04:00
<div id="wrap">
<div id="container">
2021-07-27 20:49:53 -04:00
<div class="entry">
2019-03-06 17:01:54 -05:00
<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 %}<b><time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time></b>{% 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 = 'https://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] ||
document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
{% endif %}
</article>
2021-07-27 20:49:53 -04:00
</div>
</div>
2019-03-06 17:01:54 -05:00
{% endblock %}