mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
docfix: fix example of FILENAME_METADATA regexp
This commit is contained in:
parent
070fa1ff9d
commit
f86e1128f0
2 changed files with 2 additions and 2 deletions
|
|
@ -197,7 +197,7 @@ All named groups that are matched will be set in the metadata object. The
|
||||||
default value for the ``FILENAME_METADATA`` setting will only extract the date
|
default value for the ``FILENAME_METADATA`` setting will only extract the date
|
||||||
from the filename. For example, if you would like to extract both the date and
|
from the filename. For example, if you would like to extract both the date and
|
||||||
the slug, you could set something like:
|
the slug, you could set something like:
|
||||||
``'(?P<date>\d{4}-\d{2}-\d{2})_(?<slug>.*)'``.
|
``'(?P<date>\d{4}-\d{2}-\d{2})_(?P<slug>.*)'``.
|
||||||
|
|
||||||
Please note that the metadata available inside your files takes precedence over
|
Please note that the metadata available inside your files takes precedence over
|
||||||
the metadata extracted from the filename.
|
the metadata extracted from the filename.
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ Setting name (default value) What doe
|
||||||
the filename.
|
the filename.
|
||||||
For example, if you would like to extract both the
|
For example, if you would like to extract both the
|
||||||
date and the slug, you could set something like:
|
date and the slug, you could set something like:
|
||||||
``'(?P<date>\d{4}-\d{2}-\d{2})_(?<slug>.*)'``.
|
``'(?P<date>\d{4}-\d{2}-\d{2})_(?P<slug>.*)'``.
|
||||||
`DELETE_OUTPUT_DIRECTORY` (``False``) Delete the content of the output directory before
|
`DELETE_OUTPUT_DIRECTORY` (``False``) Delete the content of the output directory before
|
||||||
generating new files.
|
generating new files.
|
||||||
`FILES_TO_COPY` (``()``) A list of files (or directories) to copy from the source (inside the
|
`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