fixed sass paths

This commit is contained in:
Yogthos 2014-12-25 11:24:25 -05:00
parent 61d6e79be7
commit 8173f5e103
2 changed files with 4 additions and 4 deletions

View file

@ -78,7 +78,7 @@
(->> (java.io.BufferedReader. rdr) (->> (java.io.BufferedReader. rdr)
(line-seq) (line-seq)
(s/join "\n")) (s/join "\n"))
:reference-links? true :reference-links? true
:heading-anchors true :heading-anchors true
:replacement-transformers (conj transformer-vector (partial rewrite-hrefs config)))) :replacement-transformers (conj transformer-vector (partial rewrite-hrefs config))))
@ -301,7 +301,9 @@
(println (blue "generating rss")) (println (blue "generating rss"))
(spit (str public blog-prefix "/" rss-name) (rss/make-channel config posts)) (spit (str public blog-prefix "/" rss-name) (rss/make-channel config posts))
(println (blue "compiling sass")) (println (blue "compiling sass"))
(sass/compile-sass->css! sass-src sass-dest))) (sass/compile-sass->css!
(str "resources/templates/" sass-src)
(str "resources/public" blog-prefix "/" sass-dest))))
(defn compile-assets-timed [] (defn compile-assets-timed []
(time (time

View file

@ -26,14 +26,12 @@
(str src-sass "/" sass-file) (str src-sass "/" sass-file)
(str dest-sass "/" ))) (str dest-sass "/" )))
(defn compile-sass->css! (defn compile-sass->css!
"Given a directory src-sass, looks for all sass files and compiles them into "Given a directory src-sass, looks for all sass files and compiles them into
dest-sass. Prompts you to install sass if he finds sass files and can't find dest-sass. Prompts you to install sass if he finds sass files and can't find
the command. Shows you any problems it comes across when compiling. " the command. Shows you any problems it comes across when compiling. "
[src-sass [src-sass
dest-sass] dest-sass]
(let [sass-files (find-sass-files src-sass)] (let [sass-files (find-sass-files src-sass)]
(if (seq sass-files) (if (seq sass-files)
;; I found sass files, ;; I found sass files,