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:
commit
8d3ee8a912
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