class

Hwaro::Services::Scaffolds::Book

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

Instance methods

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

Book templates share the same chrome (top header, search overlay, side arrows, sidebar) across page/section/taxonomy/404 — extracting them into partials/ makes "edit the nav" a one-file change and keeps 404/taxonomy inside the book-container so footer.html's closing tags match the body's open tags.

Taxonomy templates are never shipped: the book config enables no [[taxonomies]] (book scaffolds are ordered chapter-style and don't use tags — see ships_taxonomies?), so the templates would be dead files. Users who want taxonomies can copy them from the simple/blog scaffolds along with a [[taxonomies]] block.

Source
type

Returns the scaffold type

Source