-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Make it easier to build offline sites #1167
Comments
i was thinking for this also for offline development for example these files should all have a local copy...
|
+1 for the font awesome... I ran into this today... |
I created a minor solution for a similar problem on kubernetes.io: https://github.com/kubernetes/website/pull/15257/commits Essentially you can do stuff like:
|
It's a good idea from a privacy perspective to always load content, including font stacks, from the same origin. Doing so eliminates the chance of an unreliable third-party causing SPOF (Single Point Of Failure) during page load as happens frequently with Google, Adobe, Cloudflare and others in China, SEA and likely the middle east and for all sorts of reasons one might not expect. Offline publishing increases privacy both for publishers as well as end users in addition to providing a better user experience and improved auditability for better site security. |
See HugoBlox/hugo-blox-builder#1167 Also, - add Community section - update Support section
@ghost said, too many project are US Centric, such as S3, which is the backend of Github is based in US, often during COVID I had to use a VPN to being directly connected in US to be able to download and clone project which relay on github and S3. (I'm based in Bangkok which is SEA) without this VPN I always had timeout and/or downloading a 3 bites second. Also by using "offline site" version of my site, I speed up by 200% the rendering and now this one could be cached entirely by CloudFlare which means my website is now available in 200 cities. result with offline site options enabledon netlifyon cloudflare as workersresult without offline sitesuch as the update_academic.sh script, I think it could be easy to make a script to parse and download all these resources, of course I'm not a Windows user. but personally I simply don't understand having everything locally is not the default behavior instead of relaying on a bunch of uncacheable externals ressources. |
@gcushen at https://sourcethemes.com/academic/docs/offline-site/ it could be interesting to define what means
since to make it work I had to copy webfonts in |
Closing due to little demand and the discussion going stale with no contributions. |
Has this issue anything to do with this? |
How can we make it easier to generate offline sites?
Background: GetRD/academic-file-converter#14 (comment)
Possible solutions:
Add a
package.json
for building offline sites to the Kickstart repoHave an additional repo just for offline assets. It could be packaged as a Hugo module so then users could simply install the Hugo module to install assets locally
Both these approaches may require a few tweaks in Academic's code to check for presence of these individual files as opposed to the current offline approach of requiring offline assets to be concatenated into a single CSS and JS files.
Documentation
The text was updated successfully, but these errors were encountered: