class

Hwaro::Services::Scaffolds::Blog

Inherits Hwaro::Services::Scaffolds::Base < Reference < Object

Instance methods

archetype_files

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.

Source
config_title

Returns the site title used in config (overridable per scaffold). Public so hwaro doctor can source its placeholder-title advisory from the scaffolds themselves instead of a hand-kept literal list that only ever covered "My Hwaro Site".

Source
content_files(skip_taxonomies : Bool = false) : Hash(String, String)

Returns sample content files as a hash of path => content

Source
description

Returns the description of this scaffold

Source
minimal_config_content(skip_taxonomies : Bool = false, multilingual_languages : Array(String) = [] of String) : String

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.

Source
static_files

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.

Source
template_files(skip_taxonomies : Bool = false) : Hash(String, String)

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).

Source
type

Returns the scaffold type

Source