Netlify is great and I just started learning about it. I have successfully followed the instructions here - https://www.netlify.com/blog/2020/04/22/automate-order-fulfillment-w/stripe-webhooks-netlify-functions/ and have deployed my site.
However, I now need to extend the functionality a little. I need to create multiple pages and each page needs to be tagged with some metadata that indicates if it is visible to free, pro, or premium members.
My question is this - how can I setup a folder that will contain markdown files to which a user can navigate to from the main page and the content will be shown if the subscription plan allows it and if not, a default page will be shown.
It looks like the eleventy template framework is being used in the example and my question relates more to that than netlify but really I am asking how to implement the
loadSubscriptionContent() function for each markdown file.
Appreciate any help. Thanks much.