我正在使用 Hugo 生成本地 Html 帮助文件。
当我输入:
hugo new how-to-upgrade.md
我期待的是how-to-upgrade.html
根文件夹中命名的文件。但实际上我得到how-to-upgrade\index.html
了一个文件,一个文件夹,然后是文件夹中的一个文件。
我知道将网络浏览器用于http://localhost:1313/how-to-upgrade/
或没有任何区别http://localhost:1313/how-to-upgrade/index.html
。(实际上,hugo 服务器是从后一个链接跳转到前一个链接。)但是当将 html 文件作为本地文件打开时,它会产生很大的不同。
file:///C:/Users/Documents/hugo/public/how-to-upgrade/
将列出文件夹中的所有文件,就像旧的 ftp 站点一样。
file:///C:/Users/Documents/hugo/public/how-to-upgrade/index.html
是html帮助文件。
现在我需要的是生成本地文件,如
file:///C:/Users/Documents/hugo/public/how-to-upgrade.html
没有文件夹。