# Embed inline-svg

**URL:** <https://discourse.gohugo.io/t/embed-inline-svg/2882>\
**Category:** support\
**Created:** [March 9, 2016, 6:06am UTC](https://discourse.gohugo.io/t/embed-inline-svg/2882 "2016-03-09T06:06:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vedam](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/vedam/32/1340_2.png) [@vedam](https://discourse.gohugo.io/u/vedam)\
**Post date:** [March 9, 2016, 6:06am UTC](https://discourse.gohugo.io/t/embed-inline-svg/2882/1 "2016-03-09T06:06:16Z")

</div>

Hey.  
I’m new to Hugo and i’m trying to add some inline-svg to my templates.  
But I’m more guessing:

```auto
{{ partial "img/icons.svg" | absURL }}

```

doesn’t work. Maybe someone has a hint for me.  
Thx in advance.

btw. Hugo rocks

---

<div class="post-metadata">

**Author:** ![rdwatters](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rdwatters/32/2848_2.png) [@rdwatters](https://discourse.gohugo.io/u/rdwatters)\
**Post date:** [March 9, 2016, 8:55am UTC](https://discourse.gohugo.io/t/embed-inline-svg/2882/2 "2016-03-09T08:55:19Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![vedam](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/vedam/32/1340_2.png) [@vedam](https://discourse.gohugo.io/u/vedam)\
**Post date:** [March 9, 2016, 1:59pm UTC](https://discourse.gohugo.io/t/embed-inline-svg/2882/3 "2016-03-09T13:59:39Z")

</div>

that easy. worked.  
Thx

---

<div class="post-metadata">

**Author:** ![stephen-james](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/stephen-james/32/6681_2.png) [@stephen-james](https://discourse.gohugo.io/u/stephen-james)\
**Post date:** [August 21, 2018, 12:00pm UTC](https://discourse.gohugo.io/t/embed-inline-svg/2882/4 "2018-08-21T12:00:39Z")

</div>

I’ve been having trouble with this referencing svg files that aren’t in the partials folder… is there a way to do this?

---

<div class="post-metadata">

**Author:** ![rdwatters](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rdwatters/32/2848_2.png) [@rdwatters](https://discourse.gohugo.io/u/rdwatters)\
**Post date:** [August 21, 2018, 1:39pm UTC](https://discourse.gohugo.io/t/embed-inline-svg/2882/5 "2018-08-21T13:39:45Z")

</div>

@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 😄
