Добавлен disqus

This commit is contained in:
MultiMote 2023-01-01 22:58:40 +03:00
parent 95f6022fbf
commit 5b22214abb
2 changed files with 28 additions and 4 deletions

View File

@ -41,10 +41,11 @@ nav.navbar {
} }
.post.single { .post.single {
& { & {
background-color: $post-bg-color; background-color: $post-bg-color;
padding: 24px; padding: 24px;
} margin-bottom: 16px;
}
.image-wrapper { .image-wrapper {
& { & {
@ -177,3 +178,8 @@ section.posts {
.page-footer { .page-footer {
min-height: 16px; min-height: 16px;
} }
.comments {
background-color: $post-bg-color;
padding: 24px;
}

View File

@ -17,4 +17,22 @@
{{- .Content -}} {{- .Content -}}
</p> </p>
</article> </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 }} {{ end }}