1
0
mirror of https://github.com/Damillora/Yuika synced 2024-12-25 13:43:46 +00:00

Add Discourse comments for my blog

This commit is contained in:
Damillora 2020-11-14 00:42:38 +07:00
parent 4ee7e18452
commit ed728e0d47

View File

@ -46,6 +46,17 @@
</div>
<div class="content-full">
<div class="my-4" id="comments">
<div id='discourse-comments'></div>
<script type="text/javascript">
DiscourseEmbed = { discourseUrl: 'https://discourse.nanao.moe/',
discourseEmbedUrl: '{{url absolute="true"}}' };
(function() {
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
})();
</script>
</div>
</div>
</main>