I think something is wrong with the basename
www.myuniversity.fr/~myname/ and the avatar
hugo builds an
index.html where I can find
grep 'portrait.jpg' index.html
index.html: <img class="portrait" src="/~myname/img/portrait.jpg" itemprop="image" alt="Avatar">
grep 'image.gif' index.html
index.html: <p><img src="img/image.gif" alt="to be filled out soon..." /></p>
Locally, this is working fine, but after deployment, my avatar is not showing (other picture is working fine).
Did I do something wrong ? (I’m starting with hugo and find it great btw!) I installed latest hugo version that I found here.
Hugo Static Site Generator v0.50 linux/amd64 BuildDate: 2018-10-29T09:52:34Z
Thank you for any help you could provide.
If you could post a link to your code, that would help us help you. It’s difficult to say where it’s going wrong otherwise.
Thank you @pointyfar!
I would prefer not to disclose the full source code (but I will if you can’t reproduce the error).
I think the relevant bits are in
baseurl = "https://www.myuniversity.fr/~myname/"
(note the tilde and the trailing slash), and
avatar = "portrait.jpg" # Specify an avatar image (in `static/img/` folder) or delete value to disable avatar.
That’s the thing. Someone has to somehow build the site from scratch in that case. If you can create a dummy repo that you can share, which reproduces the problem, someone can easily take a look.
Sorry, after a lot of trial and error, I understood that the culprit were the file permissions of
chmod 644 portrait.jpg fixed it.