Seems go template parser is not passing on my font awesome unicode. I tried double escaping to no avail.
[params.sections]
font = "Acme"
# maxFont =
# fontRatio =
bullet_icon = "\f069" # the font awesome hex number "\nnnn"
{{ with .bullet_icon }}
.section__content li::before {
content: "{{ . }}";
}
{{ end }}
if I double escape I get \f069 on the rendered page.
if I single escape I get 060. In neither case do I get the font awesome asterisk.
If I hard code \f069 in to the content property it works fine so it’s something that the go template processor is doing.
When it sees \ in a parameter value does it process as escaped character it or just pass it through. If the former how to tell it to use it literally?
@rdwatters I’ll try this too just for future reference, but @moorereason orereason came up with a simple correct answer.
Didn’t even know about safecss (say that fast ha ha).
I don’t see it buried in the functions page and your link takes me to https://hugodocs.info/ which I didn’t even know existed but must be the upcoming release? It has a better toc which would have made it easier to find.