Hwaro::Models::Site
Inherits Reference / Object
Constructors
Instance methods
Lookup indices for performance
Resolve a section by path for a given language, falling back to the
language-neutral (default-language) index when no language-specific
_index.<lang>.md exists, then to the configured default language.
Keyed by (section path, language) so a multilingual site's per-language
_index.<lang>.md files don't collide — previously a single
Hash(String, Section) kept only the first-globbed language, making
section title/description/sort_by/page_template resolve to the wrong
language. Use section_for(name, language) to look up with fallback.
Keyed by (section path, language) so a multilingual site's per-language
_index.<lang>.md files don't collide — previously a single
Hash(String, Section) kept only the first-globbed language, making
section title/description/sort_by/page_template resolve to the wrong
language. Use section_for(name, language) to look up with fallback.