rearrange

This commit is contained in:
jem 2020-02-14 20:01:41 +01:00
parent b16a1ef1bb
commit f3c5976c6a

View file

@ -15,12 +15,6 @@
(def public "resources/public") (def public "resources/public")
(defn copy-resources-from-templates!
[fs-prefix resources target-path ignore-patterns]
(let [resource-path "templates"]
(cp-io/copy-resources! fs-prefix resource-path resources
target-path ignore-patterns)))
(defn copy-resources-from-theme! (defn copy-resources-from-theme!
[fs-prefix theme target-path ignore-patterns] [fs-prefix theme target-path ignore-patterns]
(let [theme-path (str "templates/themes/" theme)] (let [theme-path (str "templates/themes/" theme)]
@ -35,6 +29,12 @@
(cp-io/copy-resources! fs-prefix theme-path ["html"] (cp-io/copy-resources! fs-prefix theme-path ["html"]
target-path ignore-patterns))) target-path ignore-patterns)))
(defn copy-resources-from-templates!
[fs-prefix resources target-path ignore-patterns]
(let [resource-path "templates"]
(cp-io/copy-resources! fs-prefix resource-path resources
target-path ignore-patterns)))
(defn get-distinct-markup-dirs (defn get-distinct-markup-dirs
[fs-prefix posts pages ignore-patterns] [fs-prefix posts pages ignore-patterns]
(let [base-path "templates/md" (let [base-path "templates/md"