mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2025-12-13 01:36:23 +00:00
try to un-break discourse integration (#91)
* try to un-break discourse integration * javascript is trickzy
This commit is contained in:
@@ -1,7 +1,18 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block disqus %}
|
||||
<div id='discourse-comments'></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
DiscourseEmbed = { discourseUrl: 'https://discourse.geek-kitchen.funkypenguin.co.nz/',
|
||||
discourseEmbedUrl: '{{ page.canonical_url }}' };
|
||||
|
||||
(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>
|
||||
{% endblock %}
|
||||
|
||||
{% block announce %}
|
||||
|
||||
Reference in New Issue
Block a user