Skip to content
Snippets Groups Projects
Commit 3fcf1c84 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Ugly fix

parent 5df3a54a
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,18 @@ class Static
website: website
}
)
code = remove_problematic_characters(code)
code
end
protected
def self.remove_problematic_characters(code)
# We don't want ' in the frontmatters!
code = code.gsub "&#39\;", "'"
code = code.gsub("&#39\;", "'")
# /u2028 breaks Hugo rendering
# https://github.com/noesya/pixelis-rapportglobal2023/issues/1
code = code.remove("\u2028".encode('utf-8'))
code
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment