Skip to content

Commit

Permalink
Update Includes.cshtml
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Jul 2, 2023
1 parent 5ff3173 commit 9b05b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MyApp/Pages/Includes.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
public List<Page> GetStaticProps(RenderContext ctx)
{
var markdown = ctx.Resolve<MarkdownPages>();
return markdown.GetVisiblePages("includes", allDirectories:true).Map(page => new Page { Slug = page.Slug! });
return markdown.GetVisiblePages("includes", allDirectories:true).Map(page => new Page { Slug = page.Slug!.Replace("includes/","") });
}
}

Expand Down

0 comments on commit 9b05b0b

Please sign in to comment.