2025-12 solstice
This post only has the title in the filename, 2025-12-solstice.md. Because the
partial date is incomplete and does not have a day value, it gets parsed as part
of the title. The date (as 2025-12-21T15:03Z, the
2025 December Solstice)
the author, and the tags are in
front matter, but there is
no need to put a title, thanks to
Lume’s Extract date plugin.
Front matter optional
You have to prepend the date to the filename using the
yyyy-mm-ddsyntax followed by a hyphen-or an underscore_(oryyyy-mm-dd-hh-ii-ssif you also need the time). Note that [the date] is removed [by default] when generating the final url […] Dates can be defined in folders, so it's shared by all pages inside […]
Since the current implementation uses a
negative lookahead
to remove hyphens that do not
precede digits 0-9,
solstice-2025-12.md would end up keeping the hyphen and render as
“Solstice-2025-12” compared to “2025-12 solstice” here. I consider this
inconsistency a limitation I can live with for now. There is a draft in the
example posts that tests the scenario with a date and title in the filename.
With No title, the title in the built site comes from the
basename of the
no-title folder containing the index.md file.