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

fix: filter draft files in production #2648

Merged
merged 1 commit into from
Jun 7, 2024
Merged

Conversation

farnabaz
Copy link
Member

@farnabaz farnabaz commented May 31, 2024

πŸ”— Linked issue

resolves #1523 #2621

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Copy link

Deploying nuxt-content with Β Cloudflare Pages Β Cloudflare Pages

Latest commit: ed85c16
Status:Β βœ…Β  Deploy successful!
Preview URL: https://698edaa2.nuxt-content-1il.pages.dev
Branch Preview URL: https://fix-draft-production.nuxt-content-1il.pages.dev

View logs

@farnabaz farnabaz merged commit 1787d8b into main Jun 7, 2024
3 checks passed
@farnabaz farnabaz deleted the fix/draft-production branch June 7, 2024 11:30
@duncandejong
Copy link

duncandejong commented Jul 11, 2024

@farnabaz is this filtering of drafts fixed in document mode?

Example of my frontmatter:

title: "Case Study 1"
description: "Case study 1 about building your first API"
draft: true (Does NOT work)
_draft: true (DOES work)
slug: "case-study-1"
img: "/images/resources/case-studies/company-logo.png"
layout: article

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.

Drafts are not being automatically excluded
2 participants