Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 3 tasks
elvith-de opened this issue Nov 16, 2021 · 3 comments
Open
1 of 3 tasks

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

elvith-de opened this issue Nov 16, 2021 · 3 comments

Comments

@elvith-de
Copy link

Mandatory Step

  • I am using latest production release of Elegant

Recommended Step

  • I have attached link to my blog source code repository
  • I have reproduced my pelican configuration files

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
Copy link
Member

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
Copy link

ayuhito commented Apr 12, 2022

Fontsource may simplify the process for self-hosting fonts.

@silverhook
Copy link
Member

Oooh, nice find, @DecliningLotus 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants