mirror of https://github.com/jpanther/congo.git
📝 Minor formatting fixes
parent
dd18d9cc9d
commit
e13b30774a
|
@ -101,7 +101,7 @@ Then in the root of your site repository, create a `netlify.toml` file:
|
||||||
[context.production.environment]
|
[context.production.environment]
|
||||||
HUGO_VERSION = "0.100.2"
|
HUGO_VERSION = "0.100.2"
|
||||||
HUGO_ENV = "production"
|
HUGO_ENV = "production"
|
||||||
|
|
||||||
[context.deploy-preview.environment]
|
[context.deploy-preview.environment]
|
||||||
HUGO_VERSION = "0.100.2"
|
HUGO_VERSION = "0.100.2"
|
||||||
```
|
```
|
||||||
|
@ -120,22 +120,20 @@ Create a new **Static Site** and link it to your project's code repository. Then
|
||||||
|
|
||||||
The site will automatically build and deploy whenever you push a change to your repo.
|
The site will automatically build and deploy whenever you push a change to your repo.
|
||||||
|
|
||||||
# Cloudflare Pages
|
## Cloudflare Pages
|
||||||
|
|
||||||
Cloudflare offers the [Pages](https://pages.cloudflare.com/) service that can host Hugo blogs.
|
Cloudflare offers the [Pages](https://pages.cloudflare.com/) service that can host Hugo blogs. It builds the site from a git repository and then hosts it on Cloudflare's CDN. Follow their [Hugo deployment guide](https://developers.cloudflare.com/pages/framework-guides/deploy-a-hugo-site) to get started.
|
||||||
It builds the site from a git repository and then hosts the site on Cloudflare's CDN.
|
|
||||||
Follow their [Hugo deployment guide](https://developers.cloudflare.com/pages/framework-guides/deploy-a-hugo-site) to get started.
|
|
||||||
|
|
||||||
The Rocker Loader™ feature offered by Cloudflare tries to speed up rendering of web pages with javascript, but it breaks the appearance switcher.
|
The Rocket Loader™ feature offered by Cloudflare tries to speed up rendering of web pages with JavaScript, but it breaks the appearance switcher in the theme. It can also cause an annoying light/dark screen flash when browsing your site due to scripts loading in the wrong order.
|
||||||
It can also cause an annoying light/dark screen flash when browsing your site due to javascript loading in the wrong order.
|
|
||||||
Fix this problem by disabling it:
|
|
||||||
|
|
||||||
* Go to the [Cloudflare dashboard](https://dash.cloudflare.com)
|
This problem can be fixed by disabling it:
|
||||||
* Click on your domain name in the list
|
|
||||||
* Click _Optimization_ in the _Speed_ section
|
|
||||||
* Scroll down to _Rocket Loader™_ and disable it
|
|
||||||
|
|
||||||
Hugo sites with the Congo theme still load very quickly even with this feature disabled.
|
- Go to the [Cloudflare dashboard](https://dash.cloudflare.com)
|
||||||
|
- Click on your domain name in the list
|
||||||
|
- Click _Optimization_ in the _Speed_ section
|
||||||
|
- Scroll down to _Rocket Loader™_ and disable it
|
||||||
|
|
||||||
|
Hugo sites built with Congo still load very quickly, even with this feature disabled.
|
||||||
|
|
||||||
## Shared hosting, VPS or private web server
|
## Shared hosting, VPS or private web server
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue