Skip to content

Conversation

@anibal
Copy link
Owner

@anibal anibal commented Nov 12, 2025

Add comprehensive draft notes system that publishes draft content under a separate URL namespace for pre-publication sharing:

Core implementation:

  • New DraftPrefix transformer plugin detects draft: true in frontmatter
  • Prepends "draft/" to slug, flattening folder structure
  • Draft pages show "DRAFT: {title}" banner at top
  • Noindex meta tag prevents search engine indexing

Component exclusions (drafts hidden from):

  • Search index, sitemap, and RSS feed
  • Tag pages and tag listings
  • Recent Notes component
  • Graph visualization
  • Backlinks

Design decisions:

  • Flattened URL structure (content/blog/post.md → draft/post)
  • Honors custom slugs (slug: foo → draft/foo)
  • Short-lived drafts, no redirect on publication
  • Simple, maintainable architecture using existing patterns

Files changed:

  • NEW: quartz/plugins/transformers/draftPrefix.ts
  • NEW: quartz/components/DraftBanner.tsx
  • Modified: 10 files for component filtering and configuration

Add comprehensive draft notes system that publishes draft content under
a separate URL namespace for pre-publication sharing:

Core implementation:
- New DraftPrefix transformer plugin detects draft: true in frontmatter
- Prepends "draft/" to slug, flattening folder structure
- Draft pages show "DRAFT: {title}" banner at top
- Noindex meta tag prevents search engine indexing

Component exclusions (drafts hidden from):
- Search index, sitemap, and RSS feed
- Tag pages and tag listings
- Recent Notes component
- Graph visualization
- Backlinks

Design decisions:
- Flattened URL structure (content/blog/post.md → draft/post)
- Honors custom slugs (slug: foo → draft/foo)
- Short-lived drafts, no redirect on publication
- Simple, maintainable architecture using existing patterns

Files changed:
- NEW: quartz/plugins/transformers/draftPrefix.ts
- NEW: quartz/components/DraftBanner.tsx
- Modified: 10 files for component filtering and configuration
@anibal anibal merged commit dc6dbf8 into v4 Nov 12, 2025
4 checks passed
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.

3 participants