Skip to content

fix suffixes#7

Open
sam0hack wants to merge 1 commit into
Ecohackerfarm:releasefrom
sam0hack:master
Open

fix suffixes#7
sam0hack wants to merge 1 commit into
Ecohackerfarm:releasefrom
sam0hack:master

Conversation

@sam0hack

@sam0hack sam0hack commented Oct 4, 2019

Copy link
Copy Markdown

MediaType.Suffix is removed. Before Hugo 0.44 this was used both to set a custom file suffix and as way to augment the mediatype definition (what you see after the "+", e.g. "image/svg+xml").

In most cases, it will be enough to just change:

[mediaTypes]
[mediaTypes."my/custom-mediatype"]
suffix = "txt"

To:

[mediaTypes]
[mediaTypes."my/custom-mediatype"]
suffixes = ["txt"]

TESTED with hugo version -> v0.55.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant