class

Hwaro::Services::Scaffolds::Bare

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

Instance methods

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

bare is intentionally minimal — taxonomies/search/highlight are opt-in features that conflict with the "no batteries" promise of this scaffold. Users who want them can copy from the simple scaffold or pass --scaffold simple. bare therefore ships no taxonomy templates (see template_files) and no search UI, so emitting those config sections would generate output nothing links to: empty /tags/ + /categories/ + /authors/ pages rendered by the section.html fallback, a search.json no page fetches, and a JSON-LD SearchAction pointing at a search endpoint that does not exist — all of them listed in sitemap.xml.

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 opt-outs documented above only took effect under --full-config, so the common case shipped exactly the taxonomies/search/highlight sections bare promises to leave out. Mirrors the Simple#minimal_config_content precedent.

Source
shortcode_files

Returns shortcode files as a hash of path => content

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

bare ships no taxonomy templates by default — taxonomies are opt-in here (see config_content), so the matching templates would be dead files. Users who add [[taxonomies]] later can copy from the simple scaffold or generate their own.

Source
type

Returns the scaffold type

Source