|
|
@ -133,6 +133,7 @@
|
|
|
|
(defn analysed-page [file]
|
|
|
|
(defn analysed-page [file]
|
|
|
|
(let [content (slurp file)]
|
|
|
|
(let [content (slurp file)]
|
|
|
|
{:file file
|
|
|
|
{:file file
|
|
|
|
|
|
|
|
:filename (filename file)
|
|
|
|
:content (-> content page-content render-markdown)
|
|
|
|
:content (-> content page-content render-markdown)
|
|
|
|
:metadata (page-metadata content)}))
|
|
|
|
:metadata (page-metadata content)}))
|
|
|
|
|
|
|
|
|
|
|
@ -160,7 +161,9 @@
|
|
|
|
config (merge (blog/config dir-name
|
|
|
|
config (merge (blog/config dir-name
|
|
|
|
(analysed-page index-file))
|
|
|
|
(analysed-page index-file))
|
|
|
|
{:dir dir})
|
|
|
|
{:dir dir})
|
|
|
|
blog-sites (md-files (blog/sites-dir dir-name input-root))]
|
|
|
|
blog-sites (->> (blog/sites-dir dir-name input-root)
|
|
|
|
|
|
|
|
md-files
|
|
|
|
|
|
|
|
(map analysed-page))]
|
|
|
|
(blog/write-files config
|
|
|
|
(blog/write-files config
|
|
|
|
output-root
|
|
|
|
output-root
|
|
|
|
blog-sites
|
|
|
|
blog-sites
|
|
|
|