Search code examples
pelican

set default root url with pelican does not work


for testing purposes I have the pelican content behind a uuid like http://mydomain/uuid

for that I changed the default publishconf.py to

#!/usr/bin/env python
# -*- coding: utf-8 -*- #
import os
import sys
sys.path.append(os.curdir)
from pelicanconf import *

SITEURL = '0aba739a-1de6-11eb-b637-2b634940aeb7'
RELATIVE_URLS = False

FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'

DELETE_OUTPUT_DIRECTORY = True

# Following items are often useful when publishing

#DISQUS_SITENAME = ""
#GOOGLE_ANALYTICS = ""

but it is not replacing all root urls. Some are just / or even /mydomain/. How can I make sure all output files are unsing a /uuid for all local reference links ?


Solution

  • give the complete url as:

    SITEURL = 'http://mydomain/uuid'
    

    without the http:// pelican doesnt use SITEURL for some reason.