Error calling Parse: Parse "1,33%": invalid URL escape "%"

Content adapter throws executing “main” at <.Content> error calling Content “_content.gotmpl:1:1” : execute of template failed: template: _default/_markup/render-link.html for a json that contain

content: “[sometext] (1,33%)” .

hugo is trying to get the link even if it is write like this in template {{ .Content | plainify | safeHTML }}

Any ideas how to make the system don’t use () as a link inside that template ?

Is the content field in your JSON file Markdown or plain text?

It should act as plain text but inside the _content.gotmpl i have this line {{ $content := dict “mediaType” “text/markdown” “value” .content }} . I guess that should be “text/plain” ?

Why don’t you try it?

Now i get for every page: ERROR Failed to create content converter: no content renderer found for markup “plain”, page : kind: “page”, /path: “examplepage/index.txt”

When I look at the content adapter documentation, the description of content.mediaType points me to:

https://gohugo.io/content-management/formats/#classification

So give text/html a try.

Thank you, finally worked!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.