remove blink tag from full articles

master
Josha von Gizycki 6 years ago
parent bf98817cf1
commit 34210b00d4

@ -114,8 +114,10 @@
(particle-content "aside")) (particle-content "aside"))
(defn fill-in-placeholders [html page] (defn fill-in-placeholders [html page]
(let [simple (-> html (let [content (:content page "")
(string/replace #"&:content" (:content page "")) content (string/replace content #"<p><blink></p>" "")
simple (-> html
(string/replace #"&:content" content)
(string/replace #"&:title" (get-in page [:metadata :title] "")) (string/replace #"&:title" (get-in page [:metadata :title] ""))
(string/replace #"&:generated-at" (now-str))) (string/replace #"&:generated-at" (now-str)))
particles (particles-in-content simple) particles (particles-in-content simple)

Loading…
Cancel
Save