#Is there a way to read markdown files?
1 messages · Page 1 of 1 (latest)
Depends on what you're trying to do. You can use glob or Content Collections
https://docs.astro.build/en/guides/markdown-content/
https://docs.astro.build/en/guides/imports/#astroglob
https://docs.astro.build/en/guides/imports/#astroglob-vs-getcollection
https://docs.astro.build/en/guides/content-collections/
@gritty lotus
I am trying to create a search bar for the blog. When a user types a word or phrase into the search bar, the web app can search for that phrase in the content of the blog posts.
Thanks for suggesting the articles. I will check them. out.
If you want to search through your posts you probably want to build a proper search index with elastic search or something and not query every result and manually skim through it. The more posts you have the slower your search will get