corretge
corretge

Reputation: 1759

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

After upgrading from Jekyll 3.8 to 3.9, 4.0 or 4.1, image files in collections are processed with permalink rules.

I have this configuration

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

With these files

image.jpeg
file.md

In 3.8 the output files are:

image.jpeg
file.html

After 3.8 the output files are:

image.html.jpeg
file.html

Is there a configuration to tell Jekyll to avoid to apply permalink rules to files that are not markdown?

Upvotes: 0

Views: 53

Answers (1)

Bailey S
Bailey S

Reputation: 627

Try removing the .html extension on the permalink since it is automatically generated.

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

Upvotes: 2

Related Questions