#Get all URLs in-code
13 messages · Page 1 of 1 (latest)
I think I can use astro.glob here and just list all the files in /pages
Is that a good way?
What do you mean by all URLs
Literally - all the public, published pages in an astro site
Ahh I see I thought you meant scraping a page, do you want every page or just markdown pages?
That's a good question - probably every page
Haven't decided if every page will be markdown yet
Would it make it easier?
Yes if your markdown is also in your /src/pages dir
When using Astro.glob() for markdown you can access a url property that is the rendered pathname for the file
Ah - that's good to know