We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8ed6be commit 211b20dCopy full SHA for 211b20d
pelicanconf.py
@@ -73,7 +73,7 @@ def sponsors(preprocessor: Preprocessor, tag: str, markup: str) -> str:
73
INDEX_SAVE_AS = "news/index.html"
74
# Pages we use prefix in order to split the menu between projects and general links.
75
# News we set the default tag to the subdirectory. This can be overriden by Tags: header if multiple tags are wanted.
76
-PATH_METADATA = r"((pages/(?P<prefix>([^/]+/)|))|(news/(?P<tags>[^/]+)/(?P<date>\d{4}-\d{2}-\d{2})_))(?P<slug>.*)\.md"
+PATH_METADATA = r"((pages/(?P<prefix>([^/]+/)|))|(news/(?P<tags>[^/]+)/(?P<date>\d{4}-\d{2}-\d{2})_))(?P<slug>[^_]+)\.md"
77
PAGE_URL = "{prefix}{slug}/"
78
PAGE_SAVE_AS = "{prefix}{slug}/index.html"
79
# We use tags as categories, so we can occasionally put something under multiple categories.
0 commit comments