News for hackers. Stuff that matters.
Re:Pelican static site generator 4.5 by vladvasiliu on Friday October 02, 2020 @09:14AM (#24662235)
I quick look on what happens, it would seem cloudflare is used to load katex.js

You may be able to disable this in the theme config if you don't use it.

Re:Pelican static site generator 4.5 by ahelwer on Friday October 02, 2020 @09:17AM (#24662254)
Ahhh thank you, looks like that's used to render MathML, which I do use. Perhaps I can add katex.js to the git repo and serve it from wherever it is gitlab hosts their websites.
Re:Pelican static site generator 4.5 by abdullahkhalids on Friday October 02, 2020 @03:49PM (#24666405)
I use pelican-katex plugin to render math once during website generation, and then not have to load the katex.js file at all. Only a katex.css file and fonts loaded from my own server.

https://github.com/cqql/pelican-katex

Re:Pelican static site generator 4.5 by vladvasiliu on Friday October 02, 2020 @09:21AM (#24662290)
I'm no hugo expert, but that's likely possible. After all, the JS files are static content. You can probably modify the theme's template to load the js from the origin.

I guess the whole point of using cloudflare as the cdn is so that people can reuse this from cache.

Re:Pelican static site generator 4.5 by ahelwer on Friday October 02, 2020 @09:29AM (#24662362)
That's an interesting trade-off. I guess static sites are small enough that downloading an extra script wouldn't be terrible, by modern heavyweight website standards. Still, maybe I should look into what cloudflare CDN actually does with its data.