From: Zack M. Davis Date: Thu, 16 Jul 2026 00:56:47 +0000 (-0700) Subject: root publishing X-Git-Url: https://zackmdavis.net/blog/source?a=commitdiff_plain;h=d7b8c9515ea727cf75a7b1f6b82295cd8bcf11e9;p=An_Algorithmic_Lucidity.git root publishing --- diff --git a/pelicanconf.py b/pelicanconf.py index 5bd5115..1027b43 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -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'}, } diff --git a/publishconf.py b/publishconf.py index 7b813a3..720d960 100644 --- a/publishconf.py +++ b/publishconf.py @@ -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