Fork me on GitHub

Hey, I have a small question. How do I access the global-metadata from a content-task ?


Also if you're missing a few hands I would love to help, been using perun for almost two years now.

eccentric J15:02:38

Hello loads the meta as part of the paths-fn then the renderer function applies it to the :rendered meta of each entry.


Okay, so for instance, I have a markdown task which uses the content-task and sends in a :passthru-fn which needs access to the global-meta, is there any built in way to access it?

eccentric J16:02:07 according to this the passthru-fn should be receiving global meta as the third argument.


Sorry i misspoke. I meant the :render-form-fn

eccentric J17:02:26 meta is passed to the render-form-fn which is a map with {:entry {} :entries [] :global-meta}


Thank you so much. This made my day.

eccentric J17:02:17

You’re welcome! The project could use some help. If you have implementation suggestions or bug fixes in mind please create issues and pull requests. Otherwise, more documentation, especially on writing custom tasks, would be very appreciated 🙂


Yes. I would be very happy to, I'll try to add something this weekend. :)