Embed Discourse into blog posts.
This commit is contained in:
parent
c9a1cb2a46
commit
9d52cab006
17
layouts/partials/comments.html
Normal file
17
layouts/partials/comments.html
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
|
||||||
|
<div id='discourse-comments'></div>
|
||||||
|
<meta name='discourse-username' content='DISCOURSE_USERNAME'>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
DiscourseEmbed = {
|
||||||
|
discourseUrl: 'https://discuss.bovender.de/',
|
||||||
|
discourseEmbedUrl: '{{ .Permalink }}',
|
||||||
|
// className: 'CLASS_NAME',
|
||||||
|
};
|
||||||
|
|
||||||
|
(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>
|
Loading…
Reference in New Issue
Block a user