在 Bootstudio 中设置默认扩展网页名称

时间:2021-03-22 13:28:45

标签: html web edit utilities

我正在使用 BootstrapStudio 为我的网站创建一些页面。 我通常使用 htm 作为网页的扩展名而不是 html,所以我想知道是否有办法更改 BootstrapStudio 中的默认 html 扩展名。 谢谢

1 个答案:

答案 0 :(得分:0)

我认为这在 Bootstrap Studio 中是不可能的,但是您可以编写一个脚本以在导出站点时运行以更改所有文件扩展名。

试试看https://bootstrapstudio.io/tutorials/export-scripts

如果您在 linux 上运行 Bootstrap Studio,脚本将如下所示:

#!/bin/bash
cd "$1"
for f in *.html; do mv -- "$f" "${f%.html}.htm"; done