Skip to content

Conversation

@burnmaniac
Copy link
Contributor

Based on this X post, I've added Content Collections to the blog page of tanstack.com.

To summarize the change:

  • Added Content Collections plugin to Vite
  • Added Content Collections generated files to .gitignore
  • Adjusted all published fields for articles to YYYY-MM-DD
  • Adjusted fetchFrontMatters server function
  • Removed getPostList utility function as, per my understanding, we don't need it anymore

Happy to hear feedback, as this is my small and first open-source contribution, and I've been really nervous before committing (had to fix stuff and force-push 4 times into my branch before opening PR).

@netlify
Copy link

netlify bot commented May 1, 2025

Deploy Preview for tanstack ready!

Name Link
🔨 Latest commit 30a764f
🔍 Latest deploy log https://app.netlify.com/sites/tanstack/deploys/68145f95821eee0008a7e707
😎 Deploy Preview https://deploy-preview-393--tanstack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 38 (🟢 up 10 from production)
Accessibility: 95 (no change from production)
Best Practices: 83 (no change from production)
SEO: 77 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@burnmaniac burnmaniac changed the title Add Content Collections for the blog page feat: Add Content Collections for the blog page May 1, 2025
SeanCassiere

This comment was marked as resolved.

@burnmaniac
Copy link
Contributor Author

Thank you for the feedback!

I’ve changed the date format mainly because of the schema validation, and because YYYY-MM-DD is generally recommended per ISO 8601. From my experience, the former format could create some issues. I think that change is reasonable.

I’m sorry about the bindings, I’ve never used Astro CC before, and I didn’t know there are Vite bindings as well.

I should have mentioned the alias cannot be changed; I tried.

@SeanCassiere SeanCassiere changed the title feat: Add Content Collections for the blog page feat: use content collections for the blog May 2, 2025
@SeanCassiere
Copy link
Member

@burnmaniac thank you for contributing this!

Also, congrats on your first open-source contribution!

@SeanCassiere SeanCassiere merged commit 7171766 into TanStack:main May 2, 2025
5 checks passed
LeCarbonator pushed a commit to LeCarbonator/tanstack.com that referenced this pull request Jan 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants