Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update content-collections.mdx: true drafts #3416

Merged
merged 3 commits into from
Jun 4, 2023

Conversation

colmanhumphrey
Copy link

What kind of changes does this PR include?

  • Minor content fixes (broken links, typos, etc.)

Description

  • Replaces filter back to what it was previous to Fred's edit pass on content collections guide #2371. Filtering to non-drafts makes sense too, but currently either the variable name (and the copy above) or the filter should change for consistency.
  • @FredKSchott, were you thinking of maybe changing it to be non-draft entries?

Looks like this is what it was previous to withastro#2371. Filtering to non-drafts makes sense too, but currently either the variable name (and the copy above) or the filter should change for consistency.
@netlify
Copy link

netlify bot commented Jun 4, 2023

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 563cf8c
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/647cc7a095fbef00080c67e6
😎 Deploy Preview https://deploy-preview-3416--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

Copy link
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @colmanhumphrey, thanks for spotting this!

You're right that it's inconsistent now, and I think it's probably more helpful to filter OUT draft posts, since that's what people are more likely to be doing. So, I think Fred's code had the write idea, but probably slipped up when updating the text.

Left some suggestions that I think would work, for your consideration!

src/content/docs/en/guides/content-collections.mdx Outdated Show resolved Hide resolved
src/content/docs/en/guides/content-collections.mdx Outdated Show resolved Hide resolved
Co-authored-by: Sarah Rainsberger <[email protected]>
@sarah11918
Copy link
Member

This is wonderful, thanks so much for this fix! Will merge as soon as the checks pass, and welcome to Team Docs! 🥳

@sarah11918 sarah11918 merged commit ba7a8d0 into withastro:main Jun 4, 2023
@colmanhumphrey colmanhumphrey deleted the patch-1 branch June 4, 2023 22:10
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