   to the `:io.perun/trace` metadata. `grouper` is a function that takes a seq
   of entries and returns a map of paths to render data (see docstring for
   `assortment` for more info)"
-  [{:keys [task-name comparator filterer sortby grouper meta renderer tracer] :as options*}]
+  [{:keys [task-name comparator filterer sortby grouper meta renderer tracer pod] :as options*}]
   (cond (not (fn? comparator))
         (u/fail (str task-name " task :comparator option should implement Fn\n"))
         (not (ifn? filterer))

  "Handles common rendering task orchestration

  `paths-fn` takes a fileset as its only argument"
  [{:keys [task-name paths-fn renderer tracer rm-originals]}]
  (assert-renderer renderer)
  (content-task
   {:render-form-fn (fn [meta] `(io.perun.render/render ~renderer ~meta))
    :paths-fn paths-fn
    :task-name task-name
    :tracer tracer
    :pod render-pod
    :rm-originals rm-originals}))

(def ^:private +render-defaults+

   s sortby     SORTBY     code  "sort entries by function"
   c comparator COMPARATOR code  "sort by comparator function"
   p page       PAGE       str   "collection result page path"
   m meta       META       edn   "metadata to set on each collection entry"
   P pod        NAME       str   "name of the pod to run renderer in"]
  (let [p (or page "index.html")
        pod-name (:pod *opts*)
        options (merge +collection-defaults+
                       (dissoc *opts* :page)
                       {:task-name "collection"
                        :tracer :io.perun/collection
                        :grouper #(-> {p {:entries %}})
                        :pod (if pod-name (future (-> pod-name pod/get-pods first)))})]
    (assortment-task options)))

(def ^:private +tags-defaults+
