mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge 8b2dcb2c39 into 5f1d5c4b88
This commit is contained in:
commit
f877efa8e7
4 changed files with 26 additions and 13 deletions
|
|
@ -14,9 +14,13 @@
|
||||||
{% include 'article_infos.html' %}
|
{% include 'article_infos.html' %}
|
||||||
{{ article.content }}
|
{{ article.content }}
|
||||||
</div><!-- /.entry-content -->
|
</div><!-- /.entry-content -->
|
||||||
{% if DISQUS_SITENAME and SITEURL and article.status != "draft" %}
|
{% if SITEURL and article.status != "draft" %}
|
||||||
<div class="comments">
|
<div class="comments">
|
||||||
<h2>Comments !</h2>
|
<h2>Comments !</h2>
|
||||||
|
{% if ISSO_SITEURL %}
|
||||||
|
<section id="isso-thread"></section>
|
||||||
|
{% endif %}
|
||||||
|
{% if DISQUS_SITENAME %}
|
||||||
<div id="disqus_thread"></div>
|
<div id="disqus_thread"></div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var disqus_shortname = '{{ DISQUS_SITENAME }}';
|
var disqus_shortname = '{{ DISQUS_SITENAME }}';
|
||||||
|
|
@ -28,6 +32,7 @@
|
||||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
{% endif %}
|
||||||
<noscript>Please enable JavaScript to view the comments.</noscript>
|
<noscript>Please enable JavaScript to view the comments.</noscript>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
|
|
@ -78,5 +78,6 @@
|
||||||
|
|
||||||
{% include 'analytics.html' %}
|
{% include 'analytics.html' %}
|
||||||
{% include 'disqus_script.html' %}
|
{% include 'disqus_script.html' %}
|
||||||
|
{% include 'isso_script.html' %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
{% if DISQUS_SITENAME %}<p>There are <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">comments</a>.</p>{% endif %}
|
{% if SITEURL %}<p>There are
|
||||||
|
{% if DISQUS_SITENAME %}<a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">{% endif %}
|
||||||
|
{% if ISSO_SITEURL %}<a href="{{ SITEURL }}/{{ article.url }}#isso-thread">{% endif %}
|
||||||
|
Comments</a>.</p>{% endif %}
|
||||||
|
|
|
||||||
4
pelican/themes/notmyidea/templates/isso_script.html
Normal file
4
pelican/themes/notmyidea/templates/isso_script.html
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{% if ISSO_SITEURL %}
|
||||||
|
<script data-isso="{{ ISSO_SITEURL }}/"
|
||||||
|
src="{{ ISSO_SITEURL }}/js/embed.min.js"></script>
|
||||||
|
{% endif %}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue