You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Resolve placeholder and config-driven permalinks in route derivation #13
Deferred from PR #12 (not a showstopper; today's behavior is a documented fallback, not a regression).
Current behavior
route_for_markdown honors literal front-matter permalinks but falls back to file-path mapping when:
the permalink contains Jekyll placeholders (/blog/:title/, :year, etc.)
the route comes from config-level permalink patterns (collection permalink: settings, permalink: pretty) rather than per-file front matter
In both cases the emitted route can differ from where Jekyll actually rendered the page, producing 404s in the viewer for those files.
Structural fix
Derive routes from the RENDERED output rather than source heuristics: after the new-site build, locate each changed file's emitted page (e.g. via a tiny Jekyll hook/plugin that dumps a source→URL map, or by matching content/slug in the output tree), and use per-side maps for old/new. This subsumes placeholder expansion, config patterns, and future permalink features in one mechanism, and was the original suggestion in #10.
Activity