Closed jerlich closed 5 years ago
Hi @jerlich, thanks for opening this issue.
I have pushed a fix for issue number one to the theme repository. Could you possibly check that the template renders properly now? In order for Hugo to render a correct header picture file, it should be placed in /static/img
folder and not in /content/img
folder.
Thanks for the tip on /static/img
!
When I run
hugo server -w
everything works as expected. But when I runhugo -d /var/html/public/hugo -b http://my-url.org/hugo -w
things do not work as expected.In particular:
The
background-image: url("/img/header.jpg");
inhugo-academic-group.css
doesn't properly add the{{ .Site.BaseURL }}
. This can be fixed by commenting out that line of the css file and changing the first line ofslogan.html
to<header class="space-below " style='background-image: url("{{ .Site.BaseURL }}/img/header.jpg")'>
. I haven't tested if this breakshugo server -w
versions of the theme.During the build process
header.jpg
from thethemes
folder overwritesheader.jpg
incontent/img/
folder, so that the only way to change the header is to edit the theme. I haven't yet figured out how to fix that one.