mirror of
https://github.com/getpelican/pelican.git
synced 2026-06-05 09:16:55 +02:00
Previously, Markdown files without explicit 'Title:' metadata would fail
to get titles extracted from their first heading, unlike RST files which
support both metadata and heading-based title extraction.
New Configuration Options:
- HEADING_METADATA: Enable/disable heading metadata extraction
- HEADING_METADATA_MAP: Map heading levels to metadata fields
- HEADING_METADATA_PATTERNS: Custom regex patterns for extraction
Resolves issue where markdown files like:
Date: 2023-12-01
Category: tech
# My Article Title
Can now have titles extracted without manual Title: metadata.
Fixes also the issue where Markdown articles showed duplicate titles
when HEADING_METADATA=True was set in configuration.
References: https://github.com/getpelican/pelican/discussions/3290
Signed-off-by: Matěj Cepl <mcepl@cepl.eu>
|
||
|---|---|---|
| .. | ||
| _static | ||
| _templates | ||
| locale/zh_CN/LC_MESSAGES | ||
| changelog.rst | ||
| conf.py | ||
| content.rst | ||
| contribute.rst | ||
| faq.rst | ||
| importer.rst | ||
| index.rst | ||
| install.rst | ||
| internals.rst | ||
| Makefile | ||
| pelican-themes.rst | ||
| plugins.rst | ||
| publish.rst | ||
| quickstart.rst | ||
| report.rst | ||
| settings.rst | ||
| themes.rst | ||
| tips.rst | ||