我使用Hugo来生成本地Html帮助文件。如何更改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
没有该文件夹的本地文件。