forked from blek/world
add an option to disable loading
This commit is contained in:
parent
ab24d9eb3d
commit
79785ce53a
12
README.md
12
README.md
|
@ -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
|
||||||
|
+++
|
||||||
|
```
|
||||||
|
|
|
@ -15,18 +15,20 @@
|
||||||
|
|
||||||
{% block root %}
|
{% block root %}
|
||||||
|
|
||||||
<div class='screen fader'>
|
{% if page.extra.noload %}
|
||||||
<p>
|
<div class='screen fader'>
|
||||||
<img src='/load.gif' width='46px' height='48px' style='margin-bottom:8px' /><br/>
|
<p>
|
||||||
Loading . . .
|
<img src='/load.gif' width='46px' height='48px' style='margin-bottom:8px' /><br/>
|
||||||
|
Loading . . .
|
||||||
|
|
||||||
<span style='font-size:50%;display:block;margin-top:3em;color:#777777 !important'>
|
<span style='font-size:50%;display:block;margin-top:3em;color:#777777 !important'>
|
||||||
Credit for loading gif to
|
Credit for loading gif to
|
||||||
<a href='https://bdragon1727.itch.io/pixel-loading-pack-3'>
|
<a href='https://bdragon1727.itch.io/pixel-loading-pack-3'>
|
||||||
BDragon1727
|
BDragon1727
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endblock root %}
|
{% endblock root %}
|
Loading…
Reference in New Issue