Skip to content

Commit ebd13ba

Browse files
committed
Tweak
1 parent 47ab71c commit ebd13ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pelicanconf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# URL settings
1414
FILENAME_METADATA = r"(?P<date>\d{4}-\d{2}-\d{2})_(?P<slug>.*)"
15-
PATH_METADATA = r"pages/(?P<prefix>[^/]+/)?/.*"
15+
PATH_METADATA = r"pages/(?P<prefix>([^/]+/)|).*"
1616
ARTICLE_URL = "news/{date:%Y}/{slug}/"
1717
ARTICLE_SAVE_AS = "news/{date:%Y}/{slug}/index.html"
1818
AUTHOR_URL = "author/{slug}/"

0 commit comments

Comments
 (0)