dpeter99 / dpeter99/archivist

Published/Draft Filtering

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

**Dependencies**: None

## Context

Users need to mark pages as drafts that shouldn't appear in production builds. The `published` frontmatter field should control this.

## Requirements

1. Add filtering logic to exclude `published: false` pages

## Acceptance Criteria

- [ ] Pages with `published: false` are excluded from build
- [ ] Pages with `published: true` are included
- [ ] Pages without `published` field are excluded (default behavior)
- [ ] `archavist build --drafts` includes all pages
- [ ] Console shows count of filtered pages

## Test Cases

```yaml
# Should be excluded (production)
---
title: Work in Progress
published: false
---

# Should be included
---
title: Finished Article
published: true
---

# Should be included (no field = published)
---
title: Regular Page
---
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.