aboutsummaryrefslogtreecommitdiff
path: root/pelicanconf.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2024-12-01 17:43:32 -0500
committerRob Austein <sra@hactrn.net>2024-12-01 17:45:05 -0500
commita4787fcbddaf95e80c0737864fc7b2c03fd2dd32 (patch)
tree070f6c666f012703b0609d2f720fbf9e48f761a0 /pelicanconf.py
parent88e3615556a71fce722134637536a68bac8c0d8f (diff)
Fiddle with URL and filename settings
Diffstat (limited to 'pelicanconf.py')
-rw-r--r--pelicanconf.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pelicanconf.py b/pelicanconf.py
index 935b531..e85d4e1 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -55,3 +55,12 @@ PLUGINS = ["m.htmlsanity"]
# Per https://docs.getpelican.com/en/latest/faq.html#how-can-i-use-a-static-page-as-my-home-page
INDEX_SAVE_AS = "pelican-index.html"
+
+# https://docs.getpelican.com/en/stable/settings.html#url-settings
+# Fiddle with names to so that /Foo will do the right thing even when
+# /Foo/ is a directory with supporting content.
+
+ARTICLE_URL = "{slug}"
+ARTICLE_SAVE_AS = "{slug}/index.html"
+PAGE_URL = "pages/{slug}"
+PAGE_SAVE_AS = "pages/{slug}/index.html"