         tmp (boot/tmp-dir!)
         options (merge +sitemap-defaults+ *opts*)]
     (boot/with-pre-wrap fileset
-      (let [files (vals (get-meta fileset))]
+      (let [files (vals (get-perun-meta fileset))]
         (pod/with-call-in @pod
           (io.perun.sitemap/generate-sitemap
             ~(.getPath tmp)

      boot/commit!))


(defn- get-meta [fileset]
  (-> fileset
      meta
      :metadata))

(def ^:private markdown-deps
  '[[endophile "0.1.2"]

  "Exclude draft files"
  []
  (boot/with-pre-wrap fileset
    (let [files         (get-perun-meta fileset)
          updated-files (perun/filter-vals #(not (true? (:draft %))) files)
          fs-with-meta  (with-perun-meta fileset updated-files)]
      (u/info "Remove draft files. Remaining %s files\n" (count updated-files))
      fs-with-meta)))

