mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Allow directories in EXTRA_PATH_METADATA
Metadata applied to a directory will apply to all files under it. In case of conflicts, child paths beat parent paths, so metadata applied to `dir/subdir/file.md` will take precedence over that applied to `dir/subdir`, which will take precedence over just `dir`.
This commit is contained in:
parent
e967988eff
commit
ce9f3d55a3
3 changed files with 48 additions and 3 deletions
|
|
@ -783,7 +783,8 @@ Metadata
|
|||
|
||||
Extra metadata dictionaries keyed by relative path. Relative paths require
|
||||
correct OS-specific directory separators (i.e. / in UNIX and \\ in Windows)
|
||||
unlike some other Pelican file settings.
|
||||
unlike some other Pelican file settings. Paths to a directory apply to all
|
||||
files under it. The most-specific path wins conflicts.
|
||||
|
||||
Not all metadata needs to be :ref:`embedded in source file itself
|
||||
<internal_metadata>`. For example, blog posts are often named following a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue