Switch to getCollection
from Astro.glob
#3
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Problem
For iterating through and rendering post contents, this repo uses
Astro.glob
instead of the recommended and newgetCollection
API.The reason is that the
Astro.glob
API supports a really important API calledcompiledContent()
on the entries returned. This API is important for rendering all.md
and.mdx
files to RSS, handling the<!--more-->
comment, etc. See these links for more details:Solution
See examples here:
We need to use
getCollection
everywhere, and make sure the RSS feed isn't broken.The text was updated successfully, but these errors were encountered: