add an option to disable loading

This commit is contained in:
b1ek 2024-03-03 19:57:53 +10:00
parent ab24d9eb3d
commit 79785ce53a
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 26 additions and 12 deletions

View File

@ -37,3 +37,15 @@ $ zola serve
...as per [zola docs](https://www.getzola.org/documentation/getting-started/overview) ...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
+++
```

View File

@ -15,7 +15,8 @@
{% block root %} {% block root %}
<div class='screen fader'> {% if page.extra.noload %}
<div class='screen fader'>
<p> <p>
<img src='/load.gif' width='46px' height='48px' style='margin-bottom:8px' /><br/> <img src='/load.gif' width='46px' height='48px' style='margin-bottom:8px' /><br/>
Loading . . . Loading . . .
@ -27,6 +28,7 @@
</a> </a>
</span> </span>
</p> </p>
</div> </div>
{% endif %}
{% endblock root %} {% endblock root %}