Skip to content

Commit

Permalink
archive-friendly embed.js urls
Browse files Browse the repository at this point in the history
  • Loading branch information
liclac committed Jan 29, 2020
1 parent 64ffa30 commit 36ad76b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kakera_blog/templates/kakera_blog/blog_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ <h3 itemprop="name">{{ page.author.get_username }}</h3>
(function() {
document.getElementById('discourse-comments').innerHTML = '';
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
d.src = '{{ site_settings.discourse_url }}javascripts/embed.js?{{ page.id }}';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
})();
</script>
Expand Down

0 comments on commit 36ad76b

Please sign in to comment.