Skip to content

Add hidden flag to articles to suppress home screen listing - #138

Merged
pjohnst5 merged 2 commits into
mainfrom
copilot/add-hidden-feature-for-articles
Apr 24, 2026
Merged

pjohnst5 merged 2 commits into
mainfrom
copilot/add-hidden-feature-for-articles

Conversation

Copilot AI commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Adds a hidden boolean field to article TOML frontmatter that, when true, excludes the article from the home page listing while still rendering and serving it at its URL.

Changes

  • build.go — Added Hidden bool \toml:"hidden"`toArticlestruct;renderHome` now filters out hidden articles before passing the list to the template
  • scripts/new_article.md — Added hidden = false to the new article template so the field is present by default in all new articles
  • content/articles/reference/reference.md — Set hidden = true to hide the reference post from the home screen

Usage

+++
title = "My Article"
hidden = true   # omits from home screen; page still builds and is accessible
...
+++

@pjohnst5

Copy link
Copy Markdown
Owner

@copilot nice, now please add this to Ariel "reference.md"

@pjohnst5
pjohnst5 marked this pull request as ready for review April 24, 2026 04:19

Copilot AI commented Apr 24, 2026

Copy link
Copy Markdown
Contributor Author

@copilot nice, now please add this to Ariel "reference.md"

Done — added hidden = true to content/articles/reference/reference.md in commit 5c3a7d6.

Copilot AI requested a review from pjohnst5 April 24, 2026 04:20
@pjohnst5
pjohnst5 merged commit 867451a into main Apr 24, 2026
5 checks passed
@pjohnst5
pjohnst5 deleted the copilot/add-hidden-feature-for-articles branch April 24, 2026 04:24
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