Fork me on GitHub
#perun
<
2016-09-08
>
martinklepsch10:09:04

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

pesterhazy10:09:16

yup it's there

martinklepsch10:09:01

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

martinklepsch10:09:28

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

martinklepsch11:09:41

@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

martinklepsch11:09:56

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

martinklepsch11:09:12

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

pesterhazy12:09:06

that explains it