Embed Discourse into blog posts.

This commit is contained in:
daniel 2024-08-20 18:42:50 +02:00
parent c9a1cb2a46
commit 9d52cab006

View 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>