hashobject / perun

Programmable static site generator built with Clojure and Boot (HELP NEEDED!)
https://perun.io
Eclipse Public License 1.0
351 stars 38 forks source link

[BUG]: Blog example does not produce atom.xml #226

Open jaidetree opened 5 years ago

jaidetree commented 5 years ago

REPRODUCTION

  1. Clone the perun repo
  2. cd into examples/blog
  3. Run boot build

EXPECTED

ACTUAL

More Context

wiseman commented 5 years ago

I noticed this too. Reading the code, I can't tell what the purpose of :original is--no code uses it, it's not documented in SPEC.md, and it's not clear why the blog example uses it instead of the default filterer.

wiseman commented 5 years ago

It looks like commit 189403355d91dc8954c0f3fcff04b3ec8d63e0e4 introduced :original:

--- a/src/io/perun/markdown.clj
+++ b/src/io/perun/markdown.clj
@@ -30,7 +30,9 @@

 (defn parse-file-defn [lines]
-  (let [metadata {}]
+  ; we use `original` file flag to distinguish between generated files
+  ; (e.x. created those by plugins)
+  (let [metadata {:original true}]

114 is where :include-atom and :include-rss were added. It might just be that the blog example was not updated at the same time to reflect the new intent.