matcornic / hugo-theme-learn

Porting Grav Learn theme to Hugo
https://learn.netlify.com/en/
MIT License
1.61k stars 1.28k forks source link

Logo and favicon are not found by web server under "media" but under "images" #228

Open r4dh4l opened 5 years ago

r4dh4l commented 5 years ago

Hi,

when I hugo my page and push the content of public to my web server the logo and favicon under media are not displayed although they were displayed in the localhost view.

If I replace the default favicon under images with my one and copy my logo to images and change the path in layouts/partials/logo.html from

<img src="/media/mylogo.png" alt="mylogo.png">

to

<img src="/images/mylogo.png" alt="mylogo.png">

both, favicon and logo are displayed in the published version of the genrated size. This is not how I understood the explanation in https://themes.gohugo.io//theme/hugo-theme-learn/en/basics/style-customization/.

r4dh4l commented 5 years ago

Sorry I just noticed that this problem is not related to hugo-theme-learn but to the Nginx config for the Seafile server running on the same VM which needs a location /media block in the Nginx config.

Is there a way to change the the media directory of hugo-theme-learn to something different to surround this path conflict?