Skip to content
Snippets Groups Projects
Commit b4bd2162 authored by Anthony's avatar Anthony
Browse files

Move custom js bundle include to be accessible everywhere

parent 34a20fda
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,16 @@ ...@@ -13,6 +13,16 @@
<title>{{ partial "docs/html-head-title" . }}</title> <title>{{ partial "docs/html-head-title" . }}</title>
<!--Include Lib called everywhere -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<script defer type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!--Build and call custom.js execute everywhere -->
{{- $customJS := slice -}}
{{- $customJS = $customJS | append (resources.Get "custom.js") -}}
{{- $customJS = $customJS | resources.Concat "custom.bundle.js" -}}
<script type="module" src="{{- $customJS.RelPermalink -}}"></script>
{{- $manifest := resources.Get "manifest.json" | resources.ExecuteAsTemplate "manifest.json" . }} {{- $manifest := resources.Get "manifest.json" | resources.ExecuteAsTemplate "manifest.json" . }}
<link rel="manifest" href="{{ $manifest.RelPermalink }}"> <link rel="manifest" href="{{ $manifest.RelPermalink }}">
<link rel="icon" href="{{ .Site.Params.BookFavicon | default "favicon.png" | relURL }}" > <link rel="icon" href="{{ .Site.Params.BookFavicon | default "favicon.png" | relURL }}" >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment