okf/index-frontmatter
index.md files carry no frontmatter, except the bundle-root index.md: okf_version, and from OKF 0.3 the bundle’s title, description, license, and extension keys (OKF §8, §12).
An index.md is a list of what its directory holds, not a concept, so it carries no frontmatter (§8). The exception is the bundle-root index.md, which declares the OKF version the bundle targets (§12). Under OKF 0.2 that’s all it may hold. From OKF 0.3, it may also give the bundle’s title, a description of what it covers, its license, and extension keys. A root index.md that declares 0.2, or no version, keeps 0.2’s rule, so a tree moves to 0.3 when it says so.
Example
Section titled “Example”This file breaks the rule:
---okf_version: "0.2"title: Metrics---
# Metrics
* [Monthly churn](churn.md) - The share of customers who cancel in a month.okforest validate reports:
index.md 3:1 error Under OKF 0.2, the root index.md frontmatter may only declare `okf_version`; remove `title`, or declare `okf_version: "0.3"`. okf/index-frontmatterFixed:
---okf_version: "0.3"---
# Metrics
* [Monthly churn](churn.md) - The share of customers who cancel in a month.