Hwaro::Services::Scaffolds::Blog
Inherits Hwaro::Services::Scaffolds::Base / Reference / Object
Instance methods
Blog ships a posts.md archetype in addition to default.md so
hwaro new posts/<slug>.md auto-matches it (see
Services::Creator#find_archetype) and scaffolds blog-shaped
front matter (authors/categories) without the user having to
write the archetype themselves.
Returns the config.toml content. multilingual_languages (from
--include-multilingual) is threaded through so the full config
emits a real, enabled [languages] block instead of the commented
placeholder.
Returns sample content files as a hash of path => content
hwaro init's DEFAULT path (no --full-config) and
--minimal-config both build on minimal_config_content, NOT
config_content — without this override, blog_nav_html's
get_menu(name="main") would resolve against a config with no
[[menus.*]] at all, rendering an empty nav out of the box.
Returns static files as a hash of path => content. Every
scaffold inherits a tiny SVG favicon so a freshly-generated
site doesn't show a blank tab icon. Scaffolds that override
static_files (blog/docs/book) merge super to keep it.
Blog templates share the same chrome (header nav + search
overlay + container open) across page/section/post/archives/
taxonomy/404. We extract those into partials/ so users editing
the nav only have to touch one file — and so 404/taxonomy don't
render as bare unstyled fragments outside the blog container,
which previously left dangling </main></div> from
footer.html (gh#fix-scaffold-broken-404-taxonomy).