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 47ab71c commit ebd13baCopy full SHA for ebd13ba
1 file changed
pelicanconf.py
@@ -12,7 +12,7 @@
12
13
# URL settings
14
FILENAME_METADATA = r"(?P<date>\d{4}-\d{2}-\d{2})_(?P<slug>.*)"
15
-PATH_METADATA = r"pages/(?P<prefix>[^/]+/)?/.*"
+PATH_METADATA = r"pages/(?P<prefix>([^/]+/)|).*"
16
ARTICLE_URL = "news/{date:%Y}/{slug}/"
17
ARTICLE_SAVE_AS = "news/{date:%Y}/{slug}/index.html"
18
AUTHOR_URL = "author/{slug}/"
0 commit comments