From 839ed5c469703a8669f4c556f53fd44ca0b6358e Mon Sep 17 00:00:00 2001 From: Carmen La Date: Fri, 8 Jan 2016 20:44:07 -0500 Subject: [PATCH] Remove unnecesasry tag-root key --- project.clj | 2 +- src/cryogen_core/compiler.clj | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/project.clj b/project.clj index 43f0c9b..a6aadc3 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject cryogen-core "0.1.28" +(defproject cryogen-core "0.1.29" :description "Cryogen's compiler" :url "https://github.com/cryogen-project/cryogen-core" :license {:name "Eclipse Public License" diff --git a/src/cryogen_core/compiler.clj b/src/cryogen_core/compiler.clj index 85f09c7..ee1fe84 100644 --- a/src/cryogen_core/compiler.clj +++ b/src/cryogen_core/compiler.clj @@ -20,7 +20,7 @@ (cache-off!) (defn root-uri - "Creates the uri for posts, tags and pages. Returns root-path by default" + "Creates the uri for posts and pages. Returns root-path by default" [k config] (if-let [uri (k config)] uri @@ -349,7 +349,7 @@ (update-in [:blog-prefix] (fnil str "")) (update-in [:page-root] (fnil str "")) (update-in [:post-root] (fnil str "")) - (update-in [:tag-root] (fnil str "")) + (update-in [:tag-root-uri] (fnil str "")) (update-in [:rss-name] (fnil str "rss.xml")) (update-in [:rss-filters] (fnil seq [])) (update-in [:sass-src] (fnil str "css")) @@ -360,8 +360,7 @@ (merge config {:page-root-uri (root-uri :page-root-uri config) - :post-root-uri (root-uri :post-root-uri config) - :tag-root-uri (root-uri :tag-root-uri config)})) + :post-root-uri (root-uri :post-root-uri config)})) (catch Exception _ (throw (IllegalArgumentException. "Failed to parse config.edn")))))