wip
This commit is contained in:
parent
e3bc96ce4e
commit
297f37c469
1 changed files with 29 additions and 18 deletions
|
@ -493,7 +493,8 @@
|
||||||
sass-dest keep-files ignored-files previews?
|
sass-dest keep-files ignored-files previews?
|
||||||
author-root-uri theme debug? page-model
|
author-root-uri theme debug? page-model
|
||||||
page-root-uri resources]
|
page-root-uri resources]
|
||||||
:as config} (read-config)
|
:as config}
|
||||||
|
(read-config)
|
||||||
posts
|
posts
|
||||||
(map klipsify (add-prev-next (read-posts config)))
|
(map klipsify (add-prev-next (read-posts config)))
|
||||||
posts-by-tag
|
posts-by-tag
|
||||||
|
@ -532,18 +533,29 @@
|
||||||
:tags-uri (page-uri "tags.html" config)
|
:tags-uri (page-uri "tags.html" config)
|
||||||
:rss-uri (cryogen-io/path "/" blog-prefix rss-name)
|
:rss-uri (cryogen-io/path "/" blog-prefix rss-name)
|
||||||
:site-url (if (.endsWith site-url "/") (.substring site-url 0 (dec (count site-url))) site-url)})
|
:site-url (if (.endsWith site-url "/") (.substring site-url 0 (dec (count site-url))) site-url)})
|
||||||
file-resource-path
|
file-resource-prefix
|
||||||
(str "file:resources/templates/themes/" theme)
|
"resources/"
|
||||||
classpath-resource-path
|
resource-prefix
|
||||||
(str "templates/themes/" theme)]
|
(str "templates/themes/" theme)
|
||||||
|
file-uri
|
||||||
|
(:uri
|
||||||
|
(cp-io/resource-from-cp-or-fs
|
||||||
|
file-resource-prefix resource-prefix ""
|
||||||
|
:from-cp false))
|
||||||
|
cp-uri
|
||||||
|
(:uri
|
||||||
|
(cp-io/resource-from-cp-or-fs
|
||||||
|
file-resource-prefix resource-prefix ""
|
||||||
|
:from-fs false))]
|
||||||
(when debug?
|
(when debug?
|
||||||
(println (blue "debug: page-model:"))
|
(println (blue "debug: page-model:"))
|
||||||
(println "\t-->" (cyan page-model))
|
(println "\t-->" (cyan page-model))
|
||||||
|
(println (blue "debug: prefixes:"))
|
||||||
|
(println "\t-->" (cyan file-uri))
|
||||||
(println (blue "debug: home-page:"))
|
(println (blue "debug: home-page:"))
|
||||||
(println "\t-->" (cyan (-> params :home-page))))
|
(println "\t-->" (cyan (-> params :home-page))))
|
||||||
;; TODO: replace by file-resource-path or classpath-resource-path
|
;; TODO: inline in compile* fns
|
||||||
(println file-resource-path)
|
(set-custom-resource-path! (.toString file-uri))
|
||||||
(set-custom-resource-path! file-resource-path)
|
|
||||||
;(cryogen-io/wipe-public-folder keep-files)
|
;(cryogen-io/wipe-public-folder keep-files)
|
||||||
(cp-io/delete-resource-recursive! (cp-io/path "resources/public" blog-prefix))
|
(cp-io/delete-resource-recursive! (cp-io/path "resources/public" blog-prefix))
|
||||||
(println (blue "copying theme resources"))
|
(println (blue "copying theme resources"))
|
||||||
|
@ -558,8 +570,6 @@
|
||||||
resources
|
resources
|
||||||
(cp-io/path "resources/public" blog-prefix)
|
(cp-io/path "resources/public" blog-prefix)
|
||||||
ignored-files)
|
ignored-files)
|
||||||
;TODO: replace this
|
|
||||||
; Nur directories kopieren
|
|
||||||
;(copy-resources-from-markup-folders config)
|
;(copy-resources-from-markup-folders config)
|
||||||
(cp-io/create-dirs-from-markup-folders! "resources/"
|
(cp-io/create-dirs-from-markup-folders! "resources/"
|
||||||
(:posts config)
|
(:posts config)
|
||||||
|
@ -568,6 +578,7 @@
|
||||||
ignored-files)
|
ignored-files)
|
||||||
; TODO: Hier weitermachen
|
; TODO: Hier weitermachen
|
||||||
(compile-pages params modelled-pages)
|
(compile-pages params modelled-pages)
|
||||||
|
;(compile-pages params modelled-pages file-uri cp-uri)
|
||||||
(compile-posts params posts)
|
(compile-posts params posts)
|
||||||
(compile-tags params posts-by-tag)
|
(compile-tags params posts-by-tag)
|
||||||
(compile-tags-page params)
|
(compile-tags-page params)
|
||||||
|
|
Loading…
Reference in a new issue