Lamp page updates moving code
This commit is contained in:
parent
a05e9bf10b
commit
8faf555629
11 changed files with 1013 additions and 879 deletions
|
|
@ -39,5 +39,11 @@
|
|||
<script src="{{ "js/gif.js" | relURL }}"></script>
|
||||
<script type="module" src="{{ "js/button-generator/main.js" | relURL }}"></script>
|
||||
{{ end }}
|
||||
|
||||
<!-- Lava Lamp Adoptable - only load if page content contains lavalamp-adoptable shortcode -->
|
||||
{{ if or (findRE "{{<\\s*lavalamp-adoptable" .RawContent) (findRE "{{%\\s*lavalamp-adoptable" .RawContent) }}
|
||||
{{ $lavalampAdoptable := resources.Get "js/adoptables/lavalamp-adoptable.js" | resources.Minify | resources.Fingerprint }}
|
||||
<script src="{{ $lavalampAdoptable.RelPermalink }}" integrity="{{ $lavalampAdoptable.Data.Integrity }}"></script>
|
||||
{{ end }}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue