与 Blogger 永久链接格式完全匹配的 Hugo 永久链接格式是什么?

What is the Hugo permalink format to exactly match the Blogger permalink format?

我正在尝试从 Blogger 迁移到托管在 Google App Engine 上的 Hugo。示例 url 我正在尝试重建:

https://www.darianhickman.com/2017/03/one-year-of-uber-lyft-2016-5300.html

在我的 config.toml 文件中,我正在尝试:

[permalinks]
  post  = "/:year/:month/:title.html"

接近但失败了。 Hugo 生成的示例 url:

http://localhost:1313/2017/03/one-year-of-uber--lyft-2016-5300.html/

Hugo 的默认行为是将帖子放入带有 index.html 的文件夹中。我需要更改什么?

Hugo's default behavior is to make posts into folders with an index.html. What do I need to change?

在您的配置文件(通常命名为 config.toml)中,您需要启用名为 'ugly URLs' 的功能,如下所示:

uglyURLs = true

这样做会使 Hugo 以 /my-post.html 的形式创建 URL。默认情况下,Hugo 会为 /my-post/ 类型的 URL 生成您提到的那些 index.html 文件。