[Cryptech-Commits] [wiki] branch master updated: Fiddle with URL and filename settings
git at cryptech.is
git at cryptech.is
Sun Dec 1 22:45:26 UTC 2024
This is an automated email from the git hooks/post-receive script.
sra at hactrn.net pushed a commit to branch master
in repository wiki.
The following commit(s) were added to refs/heads/master by this push:
new a4787fc Fiddle with URL and filename settings
a4787fc is described below
commit a4787fcbddaf95e80c0737864fc7b2c03fd2dd32
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Sun Dec 1 17:43:32 2024 -0500
Fiddle with URL and filename settings
---
pelicanconf.py | 9 +++++++++
1 file changed, 9 insertions(+)
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"
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Commits
mailing list