Conversation
The relative path `const allPosts = await Astro.glob('./posts/*.md');` works as well as `const myPosts = await Astro.glob('../pages/posts/*.md');`. The latter unnecessarily returns to the pages folder.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Hello! Thank you for opening your first PR to Astro’s Docs! 🎉 Here’s what will happen next:
|
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
|
Hi @felipeaprotazio , thank you for submitting this fix! Yes, you're right, we can make the path shorter here. In fact, I reviewed everywhere to make sure that if we change this line, we change it in every place, and there is one more place it needs updating: line 51. Would you please make the change there too, and then I think we have every occurance! |
sarah11918
left a comment
There was a problem hiding this comment.
Thank you for this contribution @felipeaprotazio , and welcome to Team Docs!
* i18n(fr): Update `tutorial/0-introduction/1.mdx` from #8239 * i18n(fr): Update `tutorial/2-pages/2.mdx` from #8318 * i18n(fr): Update `tutorial/2-pages/2.mdx` from #8543 * i18n(fr): Update `tutorial/3-components/1.mdx` from #8300 * i18n(fr): Update `tutorial/4-layouts/1.mdx` from #8303 * i18n(fr): Update `tutorial/4-layouts/1.mdx` from #8584 * i18n(fr): Update `tutorial/4-layouts/2.mdx` from #8318 * i18n(fr): Update `tutorial/4-layouts/2.mdx` from #8543 * i18n(fr): Update `tutorial/5-astro-api/1.mdx` from #8191 * i18n(fr): Update `tutorial/5-astro-api/2.mdx` from #8327 * i18n(fr): Update `tutorial/5-astro-api/2.mdx` from #8489 * i18n(fr): Update `tutorial/5-astro-api/4.mdx` from #8419 * i18n(fr): Fix tab Signed-off-by: Thomas Bnt <thomasbnt@protonmail.com> --------- Signed-off-by: Thomas Bnt <thomasbnt@protonmail.com> Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
So sorry for this very, very late reply. I was on a very long vacation and I am just catching up now. I noticed you updated the line 51, too. I appreciate the consistency-oriented mindset Astro team has. |
Description (required)
The relative path
const allPosts = await Astro.glob('./posts/*.md');works as well asconst myPosts = await Astro.glob('../pages/posts/*.md');, which is the original. The latter unnecessarily returns to the pages folder.Related issues & labels (optional)
felipeaprotazio