I have a shortcode that inserts structured data on my page for SEO.
I’m wondering how I can reference a static image file and return the URL.
Currently, I’m doing this:
“logo”: {{ print .Site.BaseURL “icons/favicon.svg” }},
“image”: [
{{ print .Site.BaseURL “icons/favicon.svg” }},
{{ print .Site.BaseURL “icons/logo_text_blue.svg” }}
],
However I would like to do something like {{ ref . “/icons/favicon.svg” }}, but that doesn’t work. I think it only works for pages.
Any suggestions to make this better?