pfadfinder-konstanz / hugo-dpsg

Hugo theme based on the DPSG theme for German scout websites. Forked from the Mainroad theme
GNU General Public License v2.0
25 stars 13 forks source link

Use relURL instead of absURL #14

Closed jd1 closed 1 week ago

jd1 commented 1 week ago

I have a small website which is configured for multiple URLs, e.g. www.myexample.com, myexample.com, and my-example.com. All of the URLs are relative so it doesn't matter only a few of them are absolute. They always link to baseURL of the config. This only affects fonts and the favicon.

In this PR I adapted them to a relative URL. I didn't notice any issues so far.

I also checked on Mainroad and they also use a relative link:

<link rel="shortcut icon" href="{{ "favicon.ico" | relURL }}">

https://github.com/Vimux/Mainroad/blob/86f1b1987c68ebe429be3e9e801af6dbb98d2d0c/layouts/_default/baseof.html#L37