only load custom-easteregg if on
Avoid loading the extra custom-easteregg script if the easteregg is not turned on.
This commit is contained in:
parent
a60660144b
commit
ec176949db
1 changed files with 4 additions and 3 deletions
|
|
@ -46,8 +46,9 @@
|
||||||
<main id="main" class="flow">{{ content | safe }}</main>
|
<main id="main" class="flow">{{ content | safe }}</main>
|
||||||
|
|
||||||
{% include "partials/footer.njk" %}
|
{% include "partials/footer.njk" %}
|
||||||
|
{%- if meta.easteregg -%}
|
||||||
<script type="module" src="/assets/scripts/components/custom-easteregg.js"></script>
|
<script type="module" src="/assets/scripts/components/custom-easteregg.js"></script>
|
||||||
<custom-easteregg></custom-easteregg>
|
<custom-easteregg></custom-easteregg>
|
||||||
|
{%- endif -%}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue