MarcusVirg / forty

Forty theme - Hugo theme ported from HTML5UP origrinal theme called Forty.
Other
118 stars 116 forks source link

Use the correct property to generate the image src url #29

Open dolanor opened 5 years ago

dolanor commented 5 years ago

I found a bug where the picture set in the .Site.Params.Image doesn't get a correct URL. Hopefully this was the problem, and I fixed it.

Thank you.

funkydan2 commented 5 years ago

It might be even better to use the absURL function as it's more compatible with baseURL with or without trailing slashes.

So I think

<span class="image main"><img src="{{ .Params.image | absURL }}" alt="" /></span>

might work.