Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dolanor
Copy link

@dolanor dolanor commented Jun 26, 2019

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants