# Extracting content from svg file as html inline embed in hugo

**URL:** <https://discourse.gohugo.io/t/extracting-content-from-svg-file-as-html-inline-embed-in-hugo/39327>\
**Category:** tips & tricks\
**Created:** [July 1, 2022, 5:30am UTC](https://discourse.gohugo.io/t/extracting-content-from-svg-file-as-html-inline-embed-in-hugo/39327 "2022-07-01T05:30:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jesvtb](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jesvtb/32/13411_2.png) [@jesvtb](https://discourse.gohugo.io/u/jesvtb)\
**Post date:** [July 1, 2022, 5:30am UTC](https://discourse.gohugo.io/t/extracting-content-from-svg-file-as-html-inline-embed-in-hugo/39327/1 "2022-07-01T05:30:50Z")

</div>

I am setting up logo with svg instead of png. When I set up pointer to the svg file from config.toml file, how do I set it up so when baseof.htmls read the file, it extracts the content with tags inserted as inline html instead of using ![]() tags to “source” it as img file?

Thanks!

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [July 1, 2022, 7:15am UTC](https://discourse.gohugo.io/t/extracting-content-from-svg-file-as-html-inline-embed-in-hugo/39327/2 "2022-07-01T07:15:51Z")

</div>

If you want to inline anything, I would recommend that you put your files somewhere below /assets, then get it via:

> **[Hugo Pipes Introduction](https://gohugo.io/hugo-pipes/introduction/#find-resources-in-assets)**
>
> Hugo Pipes is Hugo's asset processing set of functions.

You can then inline it with:

```bash
{{ $mysvg.Content }}

```
