         (commit fileset tmp)))))
 
 (def ^:private +collection-defaults+
-  {:target "public"
+  {:out-dir "public"
    :filterer identity
    :sortby (fn [file] (:date-published file))
    :comparator (fn [i1 i2] (compare i1 i2))})
 
 (deftask collection
   "Render collection files"
-  [o target     OUTDIR     str  "The output directory"
+  [o out-dir    OUTDIR     str  "The output directory"
    r renderer   RENDERER   code "Page renderer"
    f filterer   FILTER     code "Filter function"
    s sortby     SORTBY     code "Sort by function"

        (commit fileset tmp)))))

(def ^:private +render-defaults+
  {:target "public"})

(deftask render
  "Render pages"
  [o target   OUTDIR   str  "The output directory"
   r renderer RENDERER code "Page renderer"]
  (let [tmp (boot/tmp-dir!)
        options (merge +render-defaults+ *opts*)]

            sorted-files (sort-by (:sortby options) (:comparator options) filtered-files)
            render-fn (:renderer options)
            html (render-fn sorted-files)
            page-filepath (str (:out-dir options) "/" page)]
        (perun/create-file tmp page-filepath html)
        (u/info (str "Render collection " page "\n"))
        (commit fileset tmp)))))
