Hey.
I’m new to Hugo and i’m trying to add some inline-svg to my templates.
But I’m more guessing:
{{ partial "img/icons.svg" | absURL }}
doesn’t work. Maybe someone has a hint for me.
Thx in advance.
btw. Hugo rocks
Hey.
I’m new to Hugo and i’m trying to add some inline-svg to my templates.
But I’m more guessing:
{{ partial "img/icons.svg" | absURL }}
doesn’t work. Maybe someone has a hint for me.
Thx in advance.
btw. Hugo rocks
Get rid of the filter/absURL and you should be good to go. I inline a bunch of icons on the site I’m putting together for work.
that easy. worked.
Thx
I’ve been having trouble with this referencing svg files that aren’t in the partials folder… is there a way to do this?
@stephen-james Saw you liked my comment on the other SVG thread. Wanted to make sure it answered your question. If you can point me to source, I might be able to help as well