From a4787fcbddaf95e80c0737864fc7b2c03fd2dd32 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 1 Dec 2024 17:43:32 -0500 Subject: Fiddle with URL and filename settings --- pelicanconf.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pelicanconf.py') 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" -- cgit v1.2.3