From 99f97d226ef88cddd43635f3f09dccfebc79ddbb Mon Sep 17 00:00:00 2001 From: Gareth Oakley Date: Sat, 13 Aug 2022 08:06:36 +0100 Subject: feat: Allow disabling preloader --- exampleSite/config.yaml | 2 ++ layouts/_default/baseof.html | 2 ++ layouts/_default/single.html | 2 ++ 3 files changed, 6 insertions(+) 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" . }} + {{ if ne .Site.Params.preloader false }}
+ {{ 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" . }} + {{ if ne .Site.Params.preloader false }}
+ {{ end }} {{ block "main" . }} -- cgit v1.2.3