Repository navigation
Rename rawPath to contentPath, add dataPath, support series abstract … - #29
Merged
Merged
Conversation
…override Part of a broader site-layout rework Norbert wants (content/ vs data/ vs static/, discussed in chat): content/ is everything that lands in the target dir (processed or verbatim-copied), data/ is files Foliage needs while building that never become their own published page. static/ is deliberately NOT part of this change - still under discussion, not decided yet. - FOWebSite: rawPath/rawPath:/defaultRawPath/relativeRawPath: renamed to contentPath/contentPath:/defaultContentPath/relativeContentPath: (default 'content' instead of 'raw'). New dataPath/dataPath:/defaultDataPath (default 'data'), same ivar-with-overridable-default shape as the other paths. - FOPublisher: gained a matching dataPath/dataPath: (default 'data'), nested under sourcePath the same way templatePath already is; passes both through in publish. - FOImporter/FOWebResource: updated to the renamed API (relativeContentPath:, comment wording). - FOSeries>>abstract: now checks data/series/<slug>.md first (frontmatter + body, read directly from disk via FOFrontmatterParser/FOMarkdownParser - deliberately NOT through FOImporter/the site tree, since a page at that exact slug would collide with the auto-generated series overview page) and falls back to the first post's own abstract when no such file exists. Body only, no frontmatter fields read from it yet (e.g. a title override) - not asked for, matches the file's whole purpose today (a hand-written abstract, nothing else). Verified: full suite green (Foliage-Core-Tests, Foliage-Publisher-Tests, Foliage-Markdown-Tests, Foliage-Frontmatter-Tests), plus a real dry run against noha.github.io's renamed content/ tree (companion change in that repo) - import + full publish, including series pages, completes with no errors and the same output as before the rename.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…override
Part of a broader site-layout rework Norbert wants (content/ vs data/ vs static/, discussed in chat): content/ is everything that lands in the target dir (processed or verbatim-copied), data/ is files Foliage needs while building that never become their own published page. static/ is deliberately NOT part of this change - still under discussion, not decided yet.
Verified: full suite green (Foliage-Core-Tests, Foliage-Publisher-Tests, Foliage-Markdown-Tests, Foliage-Frontmatter-Tests), plus a real dry run against noha.github.io's renamed content/ tree (companion change in that repo) - import + full publish, including series pages, completes with no errors and the same output as before the rename.