use filesystem overlay instead of cp resources
This commit is contained in:
parent
c0c9115b5f
commit
ccf27e641d
1 changed files with 12 additions and 16 deletions
|
@ -561,33 +561,29 @@
|
||||||
(println (blue "debug: home-page:"))
|
(println (blue "debug: home-page:"))
|
||||||
(println "\t-->" (cyan (-> params :home-page))))
|
(println "\t-->" (cyan (-> params :home-page))))
|
||||||
(new-io/delete-resource-recursive! (.getPath target-file-uri))
|
(new-io/delete-resource-recursive! (.getPath target-file-uri))
|
||||||
(new-io/copy-html-from-theme! "resources/"
|
(new-io/delete-resource-recursive! (cp-io/path "resources/public" blog-prefix))
|
||||||
|
(println (blue "preparing theme resources"))
|
||||||
|
(new-io/copy-html-from-theme! "content/"
|
||||||
theme
|
theme
|
||||||
(.getPath target-file-uri)
|
(.getPath target-file-uri)
|
||||||
ignored-files)
|
ignored-files)
|
||||||
;(set-custom-resource-path! (.toString resource-file-uri))
|
|
||||||
(set-custom-resource-path! (.toString target-file-uri))
|
|
||||||
;(cryogen-io/wipe-public-folder keep-files)
|
|
||||||
(new-io/delete-resource-recursive! (cp-io/path "resources/public" blog-prefix))
|
|
||||||
(println (blue "copying theme resources"))
|
(println (blue "copying theme resources"))
|
||||||
;(cryogen-io/copy-resources-from-theme config)
|
(new-io/copy-resources-from-theme! "content/"
|
||||||
(new-io/copy-resources-from-theme! "resources/"
|
|
||||||
theme
|
theme
|
||||||
(cp-io/path "resources/public" blog-prefix)
|
(cp-io/path "resources/public" blog-prefix)
|
||||||
ignored-files)
|
ignored-files)
|
||||||
(println (blue "copying resources"))
|
(println (blue "copying markup resources"))
|
||||||
;(cryogen-io/copy-resources config)
|
(new-io/copy-resources-from-templates! "content/"
|
||||||
(new-io/copy-resources-from-templates! "resources/"
|
|
||||||
resources
|
resources
|
||||||
(cp-io/path "resources/public" blog-prefix)
|
(cp-io/path "resources/public" blog-prefix)
|
||||||
ignored-files)
|
ignored-files)
|
||||||
;(copy-resources-from-markup-folders config)
|
(println (blue "prepare folders based on markup"))
|
||||||
(println (blue "prepare folders for markup"))
|
(new-io/create-dirs-from-markup-folders! "content/"
|
||||||
(new-io/create-dirs-from-markup-folders! "resources/"
|
|
||||||
(:posts config)
|
(:posts config)
|
||||||
(:pages config)
|
(:pages config)
|
||||||
(cp-io/path "resources/public" blog-prefix)
|
(cp-io/path "resources/public" blog-prefix)
|
||||||
ignored-files)
|
ignored-files)
|
||||||
|
(set-custom-resource-path! (.toString target-file-uri))
|
||||||
(compile-pages params modelled-pages)
|
(compile-pages params modelled-pages)
|
||||||
(compile-posts params posts)
|
(compile-posts params posts)
|
||||||
(compile-tags params posts-by-tag)
|
(compile-tags params posts-by-tag)
|
||||||
|
|
Loading…
Reference in a new issue