Hey everyone,
I am trying to implement a Blogs feature in EDS. I am doing this by creating a dynamic feed from query-index.json using JS fetch.
async function loadJSON(path) {
if (path) {
const resp = await fetch(path);
if (resp.ok) {
return await resp.json();
}
}
return null;
}
This happens in a block with the json path.
1. For the URL: `/blogs/` I am fetching all blogs without filtering
2. For Tagging, I am using static URLs: `/blogs/<tag>` and adding a filter through the block className by adding a (tag)
I have a few questions:
For Dynamic filtering, what should I use? Is there a best practice, instead of using static URLs? Are there any other best practices for blogs in EDS?