Merge pull request #68 from joehand/patch-1

Only load custom-easteregg.js if easter egg is on in meta.js
This commit is contained in:
Lene Saile 2024-12-21 09:39:00 +01:00 committed by GitHub
commit 8d3ee8a912
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>