You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you need help on this, I wrote stuff that does this. Happy to help, but do not know if this is stale, here is the fragment in https://richtong/hugo-universal-theme
This adds it to the Facebook OpenGraph header, but the main ideas are to use readFile and then unmarshal to get the SVG's XML into a Go Map and the use the hugo index. function to find it. Other trick is that parameters and a dash - in them.
Extract the values. There are two general ways to parse the SVG content as far as I can see:
We need to collect and maybe calculate the values (viewBox) for the width and height.
Add them to the image tag.
The text was updated successfully, but these errors were encountered: