【发布时间】:2020-11-03 15:24:37
【问题描述】:
出于测试目的,我在 uuid 后面有鹈鹕内容,例如 http://mydomain/uuid
为此,我将默认的 publishconf.py 更改为
#!/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 = ""
但它不会替换所有根 URL。有些只是/甚至/mydomain/。如何确保所有输出文件都取消了所有本地参考链接的 /uuid ?
【问题讨论】:
标签: pelican