class

Hwaro::Services::Exporters::JekyllExporter

Inherits Hwaro::Services::Exporters::Base / Reference / Object

Constants

HANDLED_KEYS = Set {"title", "date", "description", "draft", "tags", "categories", "authors", "image"}

Keys emitted explicitly below; everything else passes through as a Jekyll page variable (Jekyll accepts arbitrary front-matter keys, so dropping slug, weight, layout, extra.*, … was silent data loss — the same bug class gh#527 fixed for the Hugo exporter).

POST_SECTIONS = ["posts", "blog"] of ::String

Top-level sections whose dated content maps to Jekyll's _posts/ collection. posts is what the Jekyll importer itself produces (round-trip symmetric) and blog is the other common Hwaro layout. Membership in one of these sections — not the mere presence of a date — is what makes a file a blog post: Hwaro auto-stamps date on every hwaro new page, so "has a date" alone misclassified ordinary pages (about.md, deep section pages) as posts.

Instance methods

run(options : Config::Options::ExportOptions) : ExportResult
Source