diff options
author | Gareth Oakley <gaz@gazoakley.com> | 2022-08-13 10:06:36 +0300 |
---|---|---|
committer | Gareth Oakley <gaz@gazoakley.com> | 2022-08-13 10:06:36 +0300 |
commit | 99f97d226ef88cddd43635f3f09dccfebc79ddbb (patch) | |
tree | cd3aff4741ebb0a497e5386dbe2c555442481ccd | |
parent | 8a3fe0559acf4eb1f1e88bb903d558d0fe96b81d (diff) |
feat: Allow disabling preloader
-rw-r--r-- | exampleSite/config.yaml | 2 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
-rw-r--r-- | layouts/_default/single.html | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 6071b27..4c883f1 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -17,6 +17,8 @@ params: openGraph: true # Used as meta data; describe your site to make Google Bots happy description: + # Preloader ensures images are loaded before displaying to the user. If you don't want it uncomment to set it to false + # preloader: false navbarlogo: # Logo (from static/images/logos/___) image: logos/fresh.svg diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 241055d..6163221 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -6,10 +6,12 @@ {{ partial "css.html" . }} </head> <body> + {{ if ne .Site.Params.preloader false }} <!-- Preloader --> <div id="preloader"> <div id="status"></div> </div> + {{ end }} {{ block "main" . }} {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0c91775..c9940d5 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -6,10 +6,12 @@ {{ partial "css.html" . }} </head> <body> + {{ if ne .Site.Params.preloader false }} <!-- Preloader --> <div id="preloader"> <div id="status"></div> </div> + {{ end }} {{ block "main" . }} |