Skip to content

Commit 2aa00e6

Browse files
committed
Change slug
1 parent eca6f89 commit 2aa00e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pelicanconf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
LOCALE = "en"
99

1010
# URL settings
11+
FILENAME_METADATA = r"(?P<date>\d{4}-\d{2}-\d{2})_(?P<slug>.*)"
1112
ARTICLE_URL = "news/{date:%Y}/{slug}/"
1213
ARTICLE_SAVE_AS = "news/{date:%Y}/{slug}.html"
1314
AUTHOR_URL = "author/{slug}/"
1415
CATEGORY_URL = "category/{slug}/"
1516
PAGE_URL = "{slug}/"
1617
PAGE_SAVE_AS = "{slug}.html"
17-
SLUGIFY_SOURCE = "basename"
1818
TAG_URL = "tag/{slug}/"
1919
YEAR_ARCHIVE_SAVE_AS = "news/{date:%Y}/index.html"
2020
YEAR_ARCHIVE_URL = "news/{date:%Y}/"

0 commit comments

Comments
 (0)