mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add the PATH_METADATA setting
Sometimes the base filename doesn't have everything you need. Remember that os.sep is platform dependent, so using it in a regular expression for this setting may not be portable (boo MS Windows!).
This commit is contained in:
parent
c46ca5d5d1
commit
bfa8851af0
3 changed files with 10 additions and 2 deletions
|
|
@ -59,6 +59,8 @@ Setting name (default value) What doe
|
|||
For example, if you would like to extract both the
|
||||
date and the slug, you could set something like:
|
||||
``'(?P<date>\d{4}-\d{2}-\d{2})_(?P<slug>.*)'``.
|
||||
`PATH_METADATA` (``''``) Like ``FILENAME_METADATA``, but parsed from a page's
|
||||
full path relative to the content source directory.
|
||||
`DELETE_OUTPUT_DIRECTORY` (``False``) Delete the content of the output directory before
|
||||
generating new files.
|
||||
`FILES_TO_COPY` (``()``) A list of files (or directories) to copy from the source (inside the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue