aboutsummaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2023-03-05 10:25:48 +0000
committeralex <alex@pdp7.net>2023-03-05 10:25:48 +0000
commit75a875bc8320ab3e7cd324eecd8af412c46a8177 (patch)
treee5fa2aedccd824c03f54ce7baf6a15451ccd4f3b /build.py
parentb8cedb2ab0f841fa177266cd3fe8bd8824459cb6 (diff)
Generate uri properly
This avoids one redirection
Diffstat (limited to 'build.py')
-rwxr-xr-xbuild.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.py b/build.py
index 7f46759c..84867272 100755
--- a/build.py
+++ b/build.py
@@ -23,7 +23,7 @@ class Post:
def uri(self):
yyyy = self.posted.strftime("%Y")
mm = self.posted.strftime("%m")
- return f"{yyyy}/{mm}/{self.slug}"
+ return f"{yyyy}/{mm}/{self.slug}/"
def __repr__(self):