perun 2016-09-08

@pesterhazy: have you tried adding the permalink task to your pipeline?

yup it's there

ok, let me just quickly clone this into this Finnish train I'm sitting in 😄

@pesterhazy so I don't see any use of the collection or permalink task, maybe you didn't push your latest changes?

found it!

@pesterhazy so the issue is that you're using permalink but not slug which permalink depends upon. Unfortunately the default slug-fn expects file names in the following format YYYY-MM-DD-slug-title.ext which your files do not work well with your file names

(slug :slug-fn #(->> (string/split % #"[-\.]")
                             drop-last
                             (string/join "-")
                             string/lower-case))
adding this before the permalink task should fix the issue

in that context we should probably establish some pattern that raises this kind of issue early, e.g. if permalink task depends on the result of the slug task that should be checked and informed about at runtime

that explains it