Use scripts_extra to define lightgallery dependency
This commit is contained in:
parent
8e34fe0b2f
commit
4ea15411e1
2 changed files with 4 additions and 4 deletions
|
@ -36,10 +36,6 @@
|
|||
|
||||
{{ partial "script.html" "js/jquery.min.js" }}
|
||||
|
||||
{{ if eq .Params.layout "flickr" }}
|
||||
{{ partial "script_async.html" "js/lightgallery.min.js" }}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "script_async.html" "js/bootstrap.min.js" }}
|
||||
|
||||
{{ partial "script_async.html" "js/app.js" }}
|
||||
|
|
|
@ -27,3 +27,7 @@
|
|||
{{ partial "related-content.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ define "scripts_extra" }}
|
||||
{{ partial "script_async.html" "js/lightgallery.min.js" }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue