mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #3462 from Kristinita/KiraValidPathMetadataValue
docs: Use raw string for the `PATH_METADATA` setting
This commit is contained in:
commit
f9711fa10a
3 changed files with 3 additions and 3 deletions
|
|
@ -118,7 +118,7 @@ How do I make my output folder structure identical to my content hierarchy?
|
|||
Try these settings::
|
||||
|
||||
USE_FOLDER_AS_CATEGORY = False
|
||||
PATH_METADATA = "(?P<path_no_ext>.*)\..*"
|
||||
PATH_METADATA = r"(?P<path_no_ext>.*)\..*"
|
||||
ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = "{path_no_ext}.html"
|
||||
|
||||
How do I assign custom templates on a per-page basis?
|
||||
|
|
|
|||
|
|
@ -458,7 +458,7 @@ If you don't want that flexibility and instead prefer that your generated
|
|||
output paths mirror your source content's filesystem path hierarchy, try the
|
||||
following settings::
|
||||
|
||||
PATH_METADATA = '(?P<path_no_ext>.*)\..*'
|
||||
PATH_METADATA = r'(?P<path_no_ext>.*)\..*'
|
||||
ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = '{path_no_ext}.html'
|
||||
|
||||
Otherwise, you can use a variety of file metadata attributes within URL-related
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ DEFAULT_CONFIG = {
|
|||
"DEFAULT_ORPHANS": 0,
|
||||
"DEFAULT_METADATA": {},
|
||||
"FILENAME_METADATA": r"(?P<date>\d{4}-\d{2}-\d{2}).*",
|
||||
"PATH_METADATA": "",
|
||||
"PATH_METADATA": r"",
|
||||
"EXTRA_PATH_METADATA": {},
|
||||
"ARTICLE_PERMALINK_STRUCTURE": "",
|
||||
"TYPOGRIFY": False,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue