create_section

SolidGroundUX DocumentationSolidGroundUX
NL

fn: create_section

Purpose

Create a new indexed section with draft NL/EN pages, without overwriting.

Signature

def create_section(source, parent, slug, title_nl, title_en, languages='NL,EN'):

Parent must already be indexed (except for the website root). Metadata identifies these as ordinary section pages. Language choice is explicit.

Usage

# Creates two language-specific draft section indexes.
create_section(source, parent="/", slug="news",
               title_nl="Nieuws", title_en="News")