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>
|
||||
|
||||
{% include "partials/footer.njk" %}
|
||||
|
||||
<script type="module" src="/assets/scripts/components/custom-easteregg.js"></script>
|
||||
<custom-easteregg></custom-easteregg>
|
||||
{%- if meta.easteregg -%}
|
||||
<script type="module" src="/assets/scripts/components/custom-easteregg.js"></script>
|
||||
<custom-easteregg></custom-easteregg>
|
||||
{%- endif -%}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in a new issue