Fix: photo data parsing to access 'data' property from JSON manifest (#17)

This commit is contained in:
Ryogi Mutsuki
2025-06-19 14:38:55 +08:00
committed by GitHub
parent 68273d9d55
commit ed82daa5a0
2 changed files with 3 additions and 3 deletions

View File

@@ -39,8 +39,8 @@ export function createFeedSitemapPlugin(siteConfig: SiteConfig): Plugin {
__dirname,
'../../packages/data/src/photos-manifest.json',
)
const photosData: PhotoData[] = JSON.parse(
readFileSync(manifestPath, 'utf-8'),
const photosData: PhotoData[] = (JSON.parse(
readFileSync(manifestPath, 'utf-8'),).data
)
// Sort photos by date taken (newest first)