       config
       {:page-root (root-path :page-root config)
        :post-root (root-path :post-root config)
-       :tag-root (root-path :tag-root config)})))
+       :tag-root  (root-path :tag-root config)})))
 
 (defn compile-assets []
   (println (green "compiling assets..."))


(defn group-for-archive [posts]
  (->> posts
       (map #(select-keys % [:archive-group :title :uri :date]))
       (group-by :archive-group)
       (map (fn [[group posts]] {:group group :posts posts}))))

(defn tag-info [{:keys [blog-prefix tag-root]} tag]
  {:name (name tag)

      (merge
        (update-in page-meta [:layout] #(str (name %) ".html"))
        {:file-name file-name
         :content   content
         :toc       (if (:toc page-meta) (generate-toc content))}
        (if is-post?
          (let [date (parse-post-date file-name)
                archive-fmt (java.text.SimpleDateFormat. "yyyy MMMM" (java.util.Locale. "en"))
                formatted-group (.format archive-fmt date)]
            {:date                    date
             :formatted-archive-group formatted-group
             :parsed-archive-group    (.parse archive-fmt formatted-group)
             :uri                     (post-uri file-name config)
             :tags                    (set (:tags page-meta))})
          {:uri        (page-uri file-name config)
           :page-index (:page-index page-meta)})))))

