mirror of
https://github.com/almet/notmyidea.git
synced 2025-04-28 19:42:37 +02:00
30 lines
1.2 KiB
HTML
30 lines
1.2 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}{{ article.title }}{% endblock title %}
|
|
{% block content %}
|
|
<h1>{{ article.title }}</h1>
|
|
<p class="date">{% if article.lang == "fr" %}Publié le{% else %}Published
|
|
on{% endif%} {{ article.locale_date }}.
|
|
{% if article.translations %}
|
|
{% if article.lang == "fr" %}Vous pouvez aussi lire cet article en {% else %}You can also read this article in {% endif %}
|
|
{% for tr in article.translations %}
|
|
<a href="{{ SITEURL }}/{{ tr.url}}">{{ tr.lang }}</a>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</p>
|
|
{{ article.content }}
|
|
|
|
{% if DISQUS_SITENAME %}
|
|
<div class="comments">
|
|
<h2>Comments</h2>
|
|
<div id="disqus_thread"></div>
|
|
<script type="text/javascript">
|
|
var disqus_identifier = "{{ article.url }}";
|
|
(function() {
|
|
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
|
dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
|
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
|
})();
|
|
</script>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|