怎样修改网站内容(我有一个网站更改特定页面的“insights”页面网址 )
优采云 发布时间: 2021-11-15 11:18怎样修改网站内容(我有一个网站更改特定页面的“insights”页面网址
)
我有一个 网站 并且我正在尝试更改特定页面的 URL。这是网站的“见解”页面。根据实际情况,网址如下:
但是,我想将页面名称更改为:
我正在使用 python,但它很新。我想我需要在构建文件中编写一些代码。
我相信这是构建页面的代码部分:
prod = False
pages = ['homepage', 'solutions', 'work','insights']
srcLoc = 'src'
assetsLoc = 'assets'
buildLoc = 'dist/build'
我继承了这段代码,不是我写的,所以如果我不清楚,抱歉。如果需要,我可以发布大部分 python 文件。如果有帮助,我附上了我的文件结构的屏幕截图,我现在正在 build.py 文件中工作,因为我相信这是我可以更改 url 的地方。
非常感谢您的帮助,在此先感谢您。
编辑:这是通过 build.py 文件导入的所有内容,如果有帮助:
import logging as log
import json, string
from pprint import pprint
from distutils.dir_util import copy_tree
import os,sys,shutil
from scss import Compiler
from css_html_js_minify import process_single_html_file, process_single_js_file, process_single_css_file, html_minify, js_minify, css_minify