Wowchemy-hugo-modules: Option to generate entirely offline site

Created on 15 Mar 2018  Â·  9Comments  Â·  Source: wowchemy/wowchemy-hugo-modules

I really like the way that Hugo allows me to create a static version of a page, while still keeping easy editing of content using Markdown and Toml. I'm currently trying to migrate away from a similar setup, which allowed me to generate content from lots of XML.

My last setup allowed to have a completely self-contained version of the page:

  • only local stylesheets
  • only local fonts
  • only local images

Currently all the stylesheets are fetched from Cloudflare and fonts from Google.
Would it be possible to make a completely self-contained variant?

needs investigation

Most helpful comment

Privacy. I don't want to force visitors of my website to let Google and Cloudflare know they're visiting my website.

The other reason is to combat fragility. I want to be sure that my website works even when cloudflare decides to move files to a different place.

On 15 Mar 2018, at 19:41, gcushen notifications@github.com wrote:

What's your use case for requiring an entirely offline website?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

All 9 comments

What's your use case for requiring an entirely offline website?

Privacy. I don't want to force visitors of my website to let Google and Cloudflare know they're visiting my website.

The other reason is to combat fragility. I want to be sure that my website works even when cloudflare decides to move files to a different place.

On 15 Mar 2018, at 19:41, gcushen notifications@github.com wrote:

What's your use case for requiring an entirely offline website?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I appreciate your privacy concerns.

Academic will only contact Google servers if it's configured to. You can edit the themes as described in the documentation to use fonts other than Google fonts.

Around 10% of all internet traffic goes via Cloudflare. Hence, it's generally quite likely that visitors to an Academic powered website will already have many if not all of the necessary Cloudflare CDNJS assets cached in their browser. Hence, their browser may not even need to make any new requests to Cloudflare CDNJS. We have favoured this significantly improved user experience (in terms of asset/page loading) over the slower self-hosting of third party CSS/JS libraries.

Academic and CDNJS are both open source, so in the unlikely event that Cloudflare did go down and your visitors' browsers had no existing relevant cache, it would be relatively simple to remedy it.

I am also interested in a version that does not pull any files from other resources.
I will try to modify the theme by overriding the required files, but an upstream solution would be awesome.

Could the all required assets from Google/Cloudfare/Fontawesome be automatically downloaded during HTML generation, so that accessing the generated page do not require querying these third-party servers?

@ebousse Hugo does not have this feature. However, we are working on a separate tool to perform this action and will post in this thread when it's released.

That's great news :) thanks!

Closing as this feature is now implemented in the Academic Admin tool, see https://github.com/sourcethemes/academic-admin

@gcushen i'm finding this feature very needed for all the people working on offline laptos (say in grain, airplanes, whatever.. the free time you have to write in your site and optimize everything)

i was thinking about an environmnet param.. that if set to LOCAL would use all local resources (for bootstrap and JS/CSS), otherwise it goes normal

i don't think the academin-admin is a solution for this use.. what do you think?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chris-prener picture chris-prener  Â·  3Comments

eduardohenriquearnold picture eduardohenriquearnold  Â·  4Comments

melvidoni picture melvidoni  Â·  3Comments

jooyoungseo picture jooyoungseo  Â·  3Comments

pjox picture pjox  Â·  4Comments