Bladeren bron

Integrate isso for comments

theenglishway (time) 8 jaren geleden
bovenliggende
commit
8bb0234e83

+ 2 - 0
pelicanconf.py

@@ -32,5 +32,7 @@ DEFAULT_PAGINATION = False
 THEME = 'themes/pelican-alchemy/alchemy'
 DEFAULT_DATE = 'fs'
 
+ISSO_SERVER = "http://comments.theenglishway.eu"
+
 # Uncomment following line if you want document-relative URLs when developing
 #RELATIVE_URLS = True

+ 8 - 0
themes/pelican-alchemy/alchemy/templates/include/comments.html

@@ -18,3 +18,11 @@
     Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
   </noscript>
 {% endif %}
+
+{% if ISSO_SERVER %}
+    <hr /><section id="isso-thread"></section>
+    <noscript>
+        <p>Les commentaires de ce site utilisent Javascript</p>
+        <p>Comments require Javascript</p>
+    </noscript>
+{% endif %}

+ 4 - 0
themes/pelican-alchemy/alchemy/templates/include/footer.html

@@ -14,3 +14,7 @@
     / <a href="https://github.com/nairobilug/pelican-alchemy" target="_blank">&#x2728;</a>
   </p>
 </div>
+
+{% if ISSO_SERVER %}
+  <script data-isso="{{ ISSO_SERVER }}/" src="{{ ISSO_SERVER }}/js/embed.min.js"></script>
+{% endif %}