问题描述
出于测试目的,我在http:// mydomain / uuid这样的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?
解决方法
提供完整的网址为:
SITEURL = 'http://mydomain/uuid'
由于某些原因,没有http://鹈鹕不使用SITEURL。
,最后,我发现pelicanconf.py中有一个设置。
将所有内容放置在不同的文件夹中,因此所有链接的根网址都不相同
OUTPUT_PATH = 'my_desired_sub_path'