Skip to content

Commit ebc5f34

Browse files
petrsvihlikclaude
andcommitted
Fix: prefix project data files with _ to exclude from Content pipeline
Statiq.Web's built-in Content pipeline uses the glob **/{!_,}*.md which skips files starting with _. Renaming wopihost.md -> _wopihost.md and updating the read pattern to projects/_*.md prevents the NRE. Reverts the incorrect Program.cs ContentFiles override. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 59f2564 commit ebc5f34

3 files changed

Lines changed: 1 addition & 2 deletions

File tree

Pipelines/ProjectsDataPipeline.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public ProjectsDataPipeline()
1212
{
1313
InputModules = new ModuleList
1414
{
15-
new ReadFiles("projects/*.md"),
15+
new ReadFiles("projects/_*.md"),
1616
new ExtractFrontMatter(new ParseYaml()),
1717
new RenderMarkdown().UseExtensions(),
1818
new SetMetadata("ProjectModel", Config.FromDocument((doc, ctx) => new Project

Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ await Bootstrapper
1212
.CreateDefault(args)
1313
.AddWeb()
1414
.AddHostingCommands()
15-
.AddSetting(WebKeys.ContentFiles, new[] { "**/{!_,}*.{html,cshtml,md}", "!projects/**" })
1615
.RunAsync();
1716
}
1817
}
File renamed without changes.

0 commit comments

Comments
 (0)