mirror of
https://github.com/Damillora/Yuika
synced 2024-11-22 09:17:33 +00:00
Add Discourse comments for my blog
This commit is contained in:
parent
4ee7e18452
commit
ed728e0d47
11
post.hbs
11
post.hbs
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user