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:
Andrew Vant 2017-07-16 17:17:51 -04:00
commit ce9f3d55a3
3 changed files with 48 additions and 3 deletions

View file

@ -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