added support for isso: http://posativ.org/isso/
This commit is contained in:
parent
0a1be15179
commit
55242f40ef
1 changed files with 20 additions and 0 deletions
20
plugins/isso.lisp
Normal file
20
plugins/isso.lisp
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
(defpackage :coleslaw-isso
|
||||||
|
(:use :cl)
|
||||||
|
(:export #:enable)
|
||||||
|
(:import-from :coleslaw #:add-injection
|
||||||
|
#:post))
|
||||||
|
|
||||||
|
(in-package :coleslaw-isso)
|
||||||
|
|
||||||
|
(defvar *isso-header*
|
||||||
|
"<div class=\"comments\">
|
||||||
|
<section id=\"isso-thread\"></section>
|
||||||
|
<script data-isso=\"~a/\"
|
||||||
|
src=\"~a/js/embed.min.js\"></script>
|
||||||
|
</div>")
|
||||||
|
|
||||||
|
(defun enable (&key isso-url)
|
||||||
|
(flet ((inject-p (x)
|
||||||
|
(when (typep x 'post)
|
||||||
|
(format nil *isso-header* isso-url))))
|
||||||
|
(add-injection #'inject-p :body)))
|
Loading…
Add table
Reference in a new issue