Skip to content

Commit 875a317

Browse files
committed
Tweak
1 parent 9b7baae commit 875a317

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
with:
3535
path: requirements.txt
3636
- name: Build site
37-
run: python3 -We -m pelican -s publishconf.py
37+
run: python3 -We -m pelican --fatal warnings -s publishconf.py
3838
- name: Setup Pages
3939
uses: actions/configure-pages@v5
4040
- name: Upload artifact

pelicanconf.py

Lines changed: 3 additions & 3 deletions
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}/"
@@ -22,8 +22,8 @@
2222
CATEGORY_SAVE_AS = "category/{slug}/index.html"
2323
CATEGORIES_SAVE_AS = "category/index.html"
2424
INDEX_SAVE_AS = "news/index.html"
25-
PAGE_URL = "{slug}/"
26-
PAGE_SAVE_AS = "{slug}/index.html"
25+
PAGE_URL = "{prefix}{slug}/"
26+
PAGE_SAVE_AS = "{prefix}{slug}/index.html"
2727
TAG_URL = "tag/{slug}/"
2828
TAG_SAVE_AS = "tag/{slug}/index.html"
2929
TAGS_SAVE_AS = "tag/index.html"

0 commit comments

Comments
 (0)