]> zackmdavis.net Git - An_Algorithmic_Lucidity.git/commitdiff
root publishing
authorZack M. Davis <code@zackmdavis.net>
Thu, 16 Jul 2026 00:56:47 +0000 (17:56 -0700)
committerZack M. Davis <code@zackmdavis.net>
Thu, 16 Jul 2026 00:56:47 +0000 (17:56 -0700)
pelicanconf.py
publishconf.py

index 5bd5115b6026263899d7dc51d2dcc75a33dc2b9e..1027b43f11ff6fe56ea3920ef6848da8821d3382 100644 (file)
@@ -94,11 +94,14 @@ MARKDOWN = {
 # Don't use relative URLs in production - using False for proper absolute URLs
 RELATIVE_URLS = False
 
-# Serve robots.txt (with a Content-Signal line permitting AI training/input use)
-# and favicon.ico at the site root instead of under /extra/
-STATIC_PATHS = ['extra/robots.txt', 'extra/favicon.ico']
+# Serve favicon.ico at the site root instead of under /extra/. robots.txt is
+# NOT generated here on purpose: crawlers only look for robots.txt at the true
+# domain root, but this site is served under /blog, so it's deployed as a
+# standalone file directly to the real webroot instead (see
+# provisioning/robots.txt) -- if Pelican put it in its own output tree, it'd
+# end up at /blog/robots.txt, which crawlers won't find.
+STATIC_PATHS = ['extra/favicon.ico']
 EXTRA_PATH_METADATA = {
-    'extra/robots.txt': {'path': 'robots.txt'},
     'extra/favicon.ico': {'path': 'favicon.ico'},
 }
 
index 7b813a37b1cf5e7674649a2c5675a8ead94631cb..720d9604ff304949837aaf82bb31a6ed644cd2a1 100644 (file)
@@ -9,8 +9,10 @@ import sys
 sys.path.append(os.curdir)
 from pelicanconf import *
 
-# If you have a custom domain, set it here
-# SITEURL = 'https://yourdomain.com'
+# The blog lives under /blog on this domain, not at the root (the root is a
+# small standalone landing page, not part of this Pelican site) -- no
+# trailing slash, matching Pelican's own convention for SITEURL.
+SITEURL = 'https://zackmdavis.net/blog'
 
 # RSS (not Atom) to match the existing WordPress feed's format at
 # zackmdavis.net/blog/feed/. The output path is feed/index.xml rather than