Skip to content

Commit ac893d8

Browse files
committed
Tweak
1 parent 37b17ef commit ac893d8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

content/pages/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Title: Home Page
22
Status: hidden
3-
save_as: index.html
43

54
Aio-libs home page.
File renamed without changes.

pelicanconf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
# URL settings
1212
FILENAME_METADATA = r"(?P<date>\d{4}-\d{2}-\d{2})_(?P<slug>.*)"
13+
#PATH_METADATA = r"pages/(?P<prefix>[^/]+/)?/.*"
1314
ARTICLE_URL = "news/{date:%Y}/{slug}/"
1415
ARTICLE_SAVE_AS = "news/{date:%Y}/{slug}/index.html"
1516
AUTHOR_URL = "author/{slug}/"
@@ -19,8 +20,8 @@
1920
CATEGORY_SAVE_AS = "category/{slug}/index.html"
2021
CATEGORIES_SAVE_AS = "category/index.html"
2122
INDEX_SAVE_AS = "news/index.html"
22-
PAGE_URL = "p/{slug}/"
23-
PAGE_SAVE_AS = "p/{slug}/index.html"
23+
PAGE_URL = "{slug}/"
24+
PAGE_SAVE_AS = "{slug}/index.html"
2425
TAG_URL = "tag/{slug}/"
2526
TAG_SAVE_AS = "tag/{slug}/index.html"
2627
TAGS_SAVE_AS = "tag/index.html"

0 commit comments

Comments
 (0)