From 79785ce53a7eaed50e57c88044319a77106b08b7 Mon Sep 17 00:00:00 2001 From: b1ek Date: Sun, 3 Mar 2024 19:57:53 +1000 Subject: [PATCH] add an option to disable loading --- README.md | 12 ++++++++++++ templates/index.html | 26 ++++++++++++++------------ 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 6aeb80b..090278d 100644 --- a/README.md +++ b/README.md @@ -37,3 +37,15 @@ $ zola serve ...as per [zola docs](https://www.getzola.org/documentation/getting-started/overview) +## how to disable loading +go to `content/index.md`, and in the `+++` blocks, set `extra.noload` to `true`. + +like this: +```toml ++++ +title = "Welcome" + +[extra] +noload = true ++++ +``` diff --git a/templates/index.html b/templates/index.html index 608bec4..5b40f57 100644 --- a/templates/index.html +++ b/templates/index.html @@ -15,18 +15,20 @@ {% block root %} -
-

-
- Loading . . . +{% if page.extra.noload %} +

+

+
+ Loading . . . - - Credit for loading gif to - - BDragon1727 - - -

-
+ + Credit for loading gif to + + BDragon1727 + + +

+
+{% endif %} {% endblock root %} \ No newline at end of file