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
That's just the image used in the open graph protocol. I think the problem is a bit further down, in the CSS that sets the background image in the header—the image is always fetched relative to the root.
I tried to make the URL relative to the base URL using {{ .Site.BaseURL }}/images/bg.jpg but Go's template system said that wasn't safe.
For a single post I made it work by specifying the path to the image in the front matter:
image = "../images/bg.jpg"
But this only works on posts (for some reason specifying an "image" in the main config doesn't work there).
If your site is not at the root, then the background doesn't work.
The text was updated successfully, but these errors were encountered: