|
|
@ -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)
|
|
|
|