diff options
Diffstat (limited to 'layouts/partials/scripts.html')
-rw-r--r-- | layouts/partials/scripts.html | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html deleted file mode 100644 index 08f400598..000000000 --- a/layouts/partials/scripts.html +++ /dev/null @@ -1,23 +0,0 @@ -<script src="/js/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script> -<script src="/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script> -{{ $jsBase := resources.Get "js/base.js" }} -{{ $jsSearch := resources.Get "js/search.js" | resources.ExecuteAsTemplate "js/search.js" .Site.Home }} -{{ $js := (slice $jsBase $jsSearch) | resources.Concat "js/main.js" }} -{{ if .Site.IsServer }} -<script src="{{ $js.RelPermalink }}"></script> -{{ else }} -{{ $js := $js | minify | fingerprint }} -<script src="{{ $js.RelPermalink }}" integrity="{{ $js.Data.Integrity }}"></script> -{{ end }} -{{ partial "hooks/body-end.html" . }} - -<script type="text/javascript"> - if (location.pathname == "/docs" || location.pathname.startsWith("/docs/")) { - $("body.td-page,body.td-section").find("main h2,h3,h4").each(function() { - var fragment = $(this).attr('id'); - if (fragment !== undefined && fragment !== "") { - $(this).append(' <a href="#'+fragment+'" class="header-link"><i class="fas fa-link"></i></a>'); - } - }); - } -</script> |