From 34210b00d425479d034cff3eb058a80193a5c4ea Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Wed, 2 Jan 2019 15:13:03 +0100 Subject: [PATCH] remove blink tag from full articles --- src/equilibrium/render.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/equilibrium/render.clj b/src/equilibrium/render.clj index 8b3520c..8ca2ab1 100644 --- a/src/equilibrium/render.clj +++ b/src/equilibrium/render.clj @@ -114,8 +114,10 @@ (particle-content "aside")) (defn fill-in-placeholders [html page] - (let [simple (-> html - (string/replace #"&:content" (:content page "")) + (let [content (:content page "") + content (string/replace content #"

" "") + simple (-> html + (string/replace #"&:content" content) (string/replace #"&:title" (get-in page [:metadata :title] "")) (string/replace #"&:generated-at" (now-str))) particles (particles-in-content simple)