Добавлен disqus
This commit is contained in:
parent
7aff8f6a48
commit
451f70686f
@ -44,6 +44,7 @@ nav.navbar {
|
||||
& {
|
||||
background-color: $post-bg-color;
|
||||
padding: 24px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.image-wrapper {
|
||||
@ -177,3 +178,8 @@ section.posts {
|
||||
.page-footer {
|
||||
min-height: 16px;
|
||||
}
|
||||
|
||||
.comments {
|
||||
background-color: $post-bg-color;
|
||||
padding: 24px;
|
||||
}
|
@ -17,4 +17,22 @@
|
||||
{{- .Content -}}
|
||||
</p>
|
||||
</article>
|
||||
|
||||
<div class="comments">
|
||||
<div id="disqus_thread"></div>
|
||||
<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>
|
||||
{{ end }}
|
Loading…
Reference in New Issue
Block a user