Extracting content from svg file as html inline embed in hugo

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!

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

You can then inline it with:

{{ $mysvg.Content }}
2 Likes