问题描述
我正在使用 BootstrapStudio 为我的网站创建一些页面。 我通常使用 htm 作为网页的扩展名而不是 html,所以我想知道是否有办法更改 BootstrapStudio 中的默认 html 扩展名。 谢谢
解决方法
我认为这在 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