Postprocess custom output formats

Hugo cannot convert an SVG to a raster image, nor can it convert a raster image into an SVG.

Take a look at the theme for the Hugo docs site, specifically:

https://github.com/gohugoio/gohugoioTheme/blob/master/layouts/partials/opengraph/get-featured-image.html

It starts with an empty image, then overlays the desired text.

1 Like