Skip to content
Discussion options

You must be logged in to vote

Hhmm, good questions!
Yes, you should be able to set tags dynamically in eleventyComputed with a few notable catches:

  1. Dynamically set tags won't automatically create collections.
  2. JSON data files might not support page variables, you might need to use a collections.11tydata.js data file and use the function version of eleventyComputed variables.

Let me see if I can create a quick sample which might get you started…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@pdehaan
Comment options

pdehaan Oct 30, 2022
Collaborator

@pdehaan
Comment options

pdehaan Oct 30, 2022
Collaborator

@ed-ponce
Comment options

@pdehaan
Comment options

pdehaan Oct 31, 2022
Collaborator

Answer selected by ed-ponce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants