Wowchemy-hugo-modules: Avatar not showing up

Created on 3 May 2017  Â·  10Comments  Â·  Source: wowchemy/wowchemy-hugo-modules

The avatar does not get loaded. I pushed it into the img/ directory and the browser tries to download the avatar from https://example.comimg/avatar.png.

I think this is the commit that broke it: 0768fee35

Most helpful comment

Avatar not showing up for me:

  • Slash in baseurl: OK
  • Existing image file: OK
  • Page source:
<div class="portrait" style="background-image: url('http://elloaguedes.com/img/elloa.jpg');"></div>
--
  | <meta itemprop="image" content="http://elloaguedes.com/img/elloa.jpg">

What's going on here? Anyone could help me?

All 10 comments

Your baseurl in config.toml should end with a slash (/) like in the example site - Hugo expects the baseurl to end with a slash.

Oops my bad!

Avatar not showing up for me:

  • Slash in baseurl: OK
  • Existing image file: OK
  • Page source:
<div class="portrait" style="background-image: url('http://elloaguedes.com/img/elloa.jpg');"></div>
--
  | <meta itemprop="image" content="http://elloaguedes.com/img/elloa.jpg">

What's going on here? Anyone could help me?

I am having the same issue. Was this ever solved?

Yes! Do as follows:

  • baseurl = "/"
  • Config file: avatar = "yourimage.jpg"
  • Put yourimage.jpg in static folder.

Thanks!

Get Outlook for iOShttps://aka.ms/o0ukef


From: Elloá B. Guedes notifications@github.com
Sent: Saturday, June 30, 2018 7:05:24 PM
To: gcushen/hugo-academic
Cc: Rola Dali; Comment
Subject: Re: [gcushen/hugo-academic] Avatar not showing up (#173)

Yes! Do as follows:

  • baseurl = "/"
  • Config file: avatar = "yourimage.jpg"
  • Put yourimage.jpg in static folder.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/gcushen/hugo-academic/issues/173#issuecomment-401571738, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHpobeJlCDKL-gfZt52dJpgsIBlvaMi2ks5uCAQ0gaJpZM4NPYr9.

I can't get the portrait file to show instead of that spooky blue avatar.

In config.toml I have

avatar = "portrait.jpg"

And the file lives at

static/img/portrait.jpg

Still, it doesn't show. In public/index.html I have the following line:

<img class="portrait" src="/author/admin/avatar_hu52a603635ecebd45650b162dadabb4e5_12861_250x250_fill_q75_box_center.jpg" itemprop="image" alt="Avatar">

What is going wrong?

@stineb Check the following suggestions:

  1. Try to put it in the root of static folder:
static/portrait.jpg
  1. Grant read permissions for anyone else

I can't get the portrait file to show instead of that spooky blue avatar.

In config.toml I have

avatar = "portrait.jpg"

And the file lives at

static/img/portrait.jpg

Still, it doesn't show. In public/index.html I have the following line:

<img class="portrait" src="/author/admin/avatar_hu52a603635ecebd45650b162dadabb4e5_12861_250x250_fill_q75_box_center.jpg" itemprop="image" alt="Avatar">

What is going wrong? The portrait file is rather big, which may create a problem... Any help?

That solved it, thanks gcushen!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jooyoungseo picture jooyoungseo  Â·  3Comments

netw0rkf10w picture netw0rkf10w  Â·  4Comments

melvidoni picture melvidoni  Â·  3Comments

Framartin picture Framartin  Â·  4Comments

somnathrakshit picture somnathrakshit  Â·  3Comments