Flutter-Bounty-Hunters / static_shock

A static site generator for Dart.
MIT License
59 stars 5 forks source link

Allow basePath override for pages (Resolves #88) #89

Closed matthew-carroll closed 2 months ago

matthew-carroll commented 2 months ago

Allow basePath override for pages (Resolves #88)

Given a directory page like "/guides/pages/create-page.md" the base path is "/guides/pages". This PR introduces a property called basePath, which can be set for a page, and it replaces the default directory structure base path.

The property can be provided in a _data.yaml at a directory level to make it apply to the entire directory.

This PR also adds a guide for this basePath feature, as well as for hiding individual pages, which was implemented in #86