Documentation
¶
Overview ¶
Package frontmatter resolves headings and builds YAML frontmatter for journal entries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveHeading ¶
resolveHeading returns the first non-empty value among title, slug, baseName.
Parameters:
- title: Preferred heading text
- slug: Fallback slug from session metadata
- baseName: Last-resort filename base
Returns:
- string: First non-empty value
func WriteFmInt ¶
writeFmInt writes a YAML frontmatter integer field.
Parameters:
- sb: String builder to write to
- key: Frontmatter key
- value: Integer value
func WriteFmQuoted ¶
writeFmQuoted writes a YAML frontmatter quoted string field.
Parameters:
- sb: String builder to write to
- key: Frontmatter key
- value: Quoted string value
func WriteFmString ¶
writeFmString writes a YAML frontmatter bare string field.
Parameters:
- sb: String builder to write to
- key: Frontmatter key
- value: Bare string value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.