2019-09-28 19:42:54 +02:00
|
|
|
{#-
|
|
|
|
This file was automatically generated - do not edit
|
|
|
|
-#}
|
2019-06-15 15:16:14 +02:00
|
|
|
{% set disqus = config.extra.disqus %}
|
|
|
|
{% if page and page.meta and page.meta.disqus is string %}
|
|
|
|
{% set disqus = page.meta.disqus %}
|
|
|
|
{% endif %}
|
|
|
|
{% if not page.is_homepage and disqus %}
|
|
|
|
<h2 id="__comments">{{ lang.t("meta.comments") }}</h2>
|
|
|
|
<div id="disqus_thread"></div>
|
|
|
|
<script>
|
|
|
|
var disqus_config = function () {
|
2018-02-11 19:04:29 +01:00
|
|
|
this.page.url = "{{ page.canonical_url }}";
|
|
|
|
this.page.identifier =
|
|
|
|
"{{ page.canonical_url | replace(config.site_url, "") }}";
|
|
|
|
};
|
|
|
|
(function() {
|
|
|
|
var d = document, s = d.createElement("script");
|
|
|
|
s.src = "//{{ disqus }}.disqus.com/embed.js";
|
|
|
|
s.setAttribute("data-timestamp", +new Date());
|
|
|
|
(d.head || d.body).appendChild(s);
|
2019-06-15 15:16:14 +02:00
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
{% endif %}
|