Pelican-Elegant / elegant

Best theme for Pelican Static Blog Generator
https://elegant.oncrashreboot.com/
MIT License
294 stars 187 forks source link

[Help] Host fonts and js libraries locally? #766

Open elvith-de opened 2 years ago

elvith-de commented 2 years ago

Mandatory Step

Recommended Step

I need help with

Elegant uses fonts and js hosted externally (e.g. fonts.gstatic.com). Those servers seem to be located in the US. I'm from Europe and bound to the GDPR. With privacy shield gone, it can be a PITA to write your data protection statement on your website in this case.

Is there a way in elegant to self host jQuery, Bootstrap and the fonts and omit those links/requests to the CDNs? I get, that loading the JS and fonts from a CDN should usually be faster, as they are usually already cached from other sites using them. But having a static site w/o external resources would simplify some aspects and would give visitors a little bit more privacy.

silverhook commented 2 years ago

I think that would make sense. Especially as IIRC one of the goals is to be as self-contained as possible and get rid of both Bootsrap and JQuery

ayuhito commented 2 years ago

Fontsource may simplify the process for self-hosting fonts.

silverhook commented 2 years ago

Oooh, nice find, @DecliningLotus :+1: