Image Url

my repo: nataliepjlin/bblist (github.com)
Hi! I added logo, favicon, cover image to my website recently. It worked well locally, but I found that the url on the site will be nataliepjlin.github.io/up_team.jpg instead of ~/bblist/up_team.jpg so the images won’t display. Is there any ways I can fix this?

First, your publishDir (public) is a bit of a mess. It looks like you have somehow copied your entire project directory into the public directory. The public directory is created and populated when you run hugo.

Second, your site configuration contains this:

[languages.en.params]
logo = "/logo.jpg"

This will resolve to the server root (https://nataliepjlin.github.io/) but you are serving your site from a subdirectory. Options:

1) Change the value in site configuration

[languages.en.params]
logo = "/bblist/logo.jpg"

2) Contact the theme author (https://github.com/apvarun/blist-hugo-theme/issues) and ask them to update their templates to allow a site to be served from a subdirectory.

Your problems with favicon and cover image are similar.

the first one works! thanks a lot

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.