Skip to content

Exclude CLAUDE.md from website rendering - #52

Merged
3keyroman merged 1 commit into
pkic:mainfrom
3keyroman:fix/exclude-claude-md-from-site
Aug 24, 2026
Merged

3keyroman merged 1 commit into
pkic:mainfrom
3keyroman:fix/exclude-claude-md-from-site

Conversation

@3keyroman

Copy link
Copy Markdown
Collaborator

pkic.org mounts this repository as Hugo content, so CLAUDE.md was published as a page at https://pkic.org/wg/pkimm/model/claude/ with an empty page title, and the model section navigation linked to it.

This adds Hugo build front matter to CLAUDE.md so the file stays in the repository without being published:

build:
  render: never
  list: never

The same block is already used by categories/templates/_index.md and release-notes/templates/_index.md, and both of those pages return 404.

A bullet in Authoring conventions records why the block is there, so it is not later removed as stray front matter.

Refs #47

pkic.org mounts this repository as Hugo content, which published CLAUDE.md at
/wg/pkimm/model/claude/. Add build front matter so the file stays unpublished,
and record the reason in the authoring conventions.
@vanbroup

Copy link
Copy Markdown
Contributor

Maybe we should simply add these files to the ignore files config in Hugo?

@3keyroman

Copy link
Copy Markdown
Collaborator Author

Maybe we should simply add these files to the ignore files config in Hugo?

Agree, this should be another safeguard, I will also open PR to site to add it to ignore list.

@vanbroup

vanbroup commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

# Ignore all hidden files/folders and AI instruction files from static site generation
ignoreFiles:
  - "(^|/)\\."                           # Matches ANY hidden folder or hidden file (.github/, .ai/, .env, .cursorrules)
  - "(AGENTS|CLAUDE|COPILOT|PROMPTS)\\.md$" # Matches non-hidden markdown instructions anywhere

@3keyroman
3keyroman merged commit 9988aae into pkic:main Aug 24, 2026
1 check 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.

2 participants