How to use function exported from JS directory data file for pagination #2917
Unanswered
dave-kennedy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is my content directory:
tags.11tydata.js:
tags.md:
Throws this error:
Changing this part of the template:
Throws another error:
But if I change
linksByTag
from a function to an array, and remove the parens afterlinksByTag
in the front matter, it works.Is it possible to call a function exported from a JS directory data file in this way?
Beta Was this translation helpful? Give feedback.
All reactions