GlobalDataFile -> to pages with diferent tags each? #3032
Unanswered
VanEpicOfficial
asked this question in
Q&A
Replies: 1 comment 3 replies
-
You can't easily set |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to generate pages based on a global data file.
My global datafile is an array with metadata about each page which also includes the tags for each page.
How can i generate pages with tags? from a global data file?
I don't think that is possible? i am not sure so please let me know how you would do this.
Here is what I am thinking:
Use a process outside of 11ty to generate a bunch of .md or .njk files based on a master JSON file, that way each file generated will be populated with appropriate tag for each .md file, then run 11ty to generate the html and all re corresponding tags folder.
I know is kindda crazy to create a process/script outside of 11ty, but i am hopping there is a way to do what i want inside 11ty itself.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions