Встроенный шаблон для disqus
This commit is contained in:
parent
451f70686f
commit
73c09326bd
@ -2,6 +2,7 @@ baseURL = 'https://mmote.ru/'
|
|||||||
title = 'Здесь был MultiMote'
|
title = 'Здесь был MultiMote'
|
||||||
theme = 'mmotium'
|
theme = 'mmotium'
|
||||||
languageCode = 'ru'
|
languageCode = 'ru'
|
||||||
|
disqusShortname = 'multimote'
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
author = 'MultiMote'
|
author = 'MultiMote'
|
||||||
|
@ -19,20 +19,6 @@
|
|||||||
</article>
|
</article>
|
||||||
|
|
||||||
<div class="comments">
|
<div class="comments">
|
||||||
<div id="disqus_thread"></div>
|
{{ template "_internal/disqus.html" . }}
|
||||||
<script>
|
|
||||||
var disqus_config = function () {
|
|
||||||
this.page.url = '{{.Permalink}}';
|
|
||||||
this.page.identifier = '{{.File.ContentBaseName}}';
|
|
||||||
};
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
var d = document, s = d.createElement('script');
|
|
||||||
s.src = 'https://multimote.disqus.com/embed.js';
|
|
||||||
s.setAttribute('data-timestamp', +new Date());
|
|
||||||
(d.head || d.body).appendChild(s);
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
Loading…
Reference in New Issue
Block a user