Skip to content

Update content-collections.mdx: true drafts#3416

Merged
sarah11918 merged 3 commits into
withastro:mainfrom
colmanhumphrey:patch-1
Jun 4, 2023
Merged

Update content-collections.mdx: true drafts#3416
sarah11918 merged 3 commits into
withastro:mainfrom
colmanhumphrey:patch-1

Conversation

@colmanhumphrey
Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown
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!

Comment thread src/content/docs/en/guides/content-collections.mdx Outdated
Comment thread src/content/docs/en/guides/content-collections.mdx Outdated
Comment thread src/content/docs/en/guides/content-collections.mdx Outdated
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
@sarah11918
Copy link
Copy Markdown
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