class

Hwaro::Services::Scaffolds::Simple

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

Instance methods

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

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.

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, the overridden navigation'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

Ship the embedded Charter (Charis SIL) faces the inline stylesheet's @font-face blocks reference, alongside the inherited favicon.

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

Returns template files as a hash of path => content

Source
type

Returns the scaffold type

Source