diff options
Diffstat (limited to 'layouts/partials/footer.html')
-rw-r--r-- | layouts/partials/footer.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 1ae8080..7b7f8c6 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -18,7 +18,10 @@ </div> </footer> -<script src="{{ "assets/main.js" | absURL }}"></script> -<script src="{{ "assets/prism.js" | absURL }}"></script> +{{ $menu := resources.Get "js/menu.js" | js.Build }} +{{ $prism := resources.Get "js/prism.js" | js.Build }} +{{ $theme := resources.Get "js/theme.js" | js.Build }} +{{ $bundle := slice $menu $prism $theme | resources.Concat "bundle.js" | resources.Minify }} +<script type="text/javascript" src="{{ $bundle.RelPermalink }}"></script> {{- partial "extended_footer.html" . }} |