mirror of https://github.com/IoTcat/kayo.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
521 B
17 lines
521 B
4 years ago
|
{%- if theme.disqus_shortname -%}
|
||
|
<script type="text/javascript">
|
||
|
var disqus_config = function () {
|
||
|
this.page.url = '{{ page.permalink }}';
|
||
|
this.page.identifier = '{{ page.path }}';
|
||
|
this.page.title = '{{ page.title }}';
|
||
|
};
|
||
|
(function() {
|
||
|
var d = document, s = d.createElement('script');
|
||
|
|
||
|
s.src = '//{{theme.disqus_shortname}}.disqus.com/embed.js';
|
||
|
|
||
|
s.setAttribute('data-timestamp', +new Date());
|
||
|
(d.head || d.body).appendChild(s);
|
||
|
})();
|
||
|
</script>
|
||
|
{%- endif -%}
|