告诉 Jekyll 避免将永久链接规则应用于非降价文件的配置

Configuration to tell Jekyll to avoid to apply permalink rules to files that are not markdown

从 Jekyll 3.8 升级到 3.9、4.0 或 4.1 后,集合中的图像文件使用永久链接规则进行处理。

我有这个配置

collections:
  arch:
    output: true
    permalink: /:collection/:path.html

有了这些文件

image.jpeg
file.md

在 3.8 中,输出文件是:

image.jpeg
file.html

3.8 之后的输出文件是:

image.html.jpeg
file.html

是否有配置告诉 Jekyll 避免将永久链接规则应用于非降价文件?

尝试删除永久链接上的 .html 扩展名,因为它是自动生成的。

collections:
  arch:
    output: true
    permalink: /:collection/:path