khusika / FeelIt

A clean, elegant but advanced blog theme for Hugo
https://feelit.khusika.dev
MIT License
163 stars 58 forks source link

[BUG] Resources are not loaded if base path other than / #124

Open mhagnumdw opened 4 months ago

mhagnumdw commented 4 months ago

Describe the bug

favicon.ico, favicon-32x32.png, favicon-16x16.png and site.webmanifest are not found (http status 404), if baseURL is something like "https://my.domain.com/techblog" (/techblog, not only /)

Expected behavior

The resources are loaded.

Screenshots

image

Build Environment

Preview Environment

Additional Information

Should slashes be removed here? https://github.com/khusika/FeelIt/blob/4e9397144b23623b15e0c000c03669bab5072198/layouts/partials/head/link.html#L10-L18 When I remove them, everything works fine, regardless of / or /techblog at the end of baseURL.