From 2f002fdf87dcabdc80522ce8527cd1cf6b753f86 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Sun, 27 Dec 2020 16:55:22 +0000
Subject: [PATCH] edit template

---
 layouts/partials/scripts.html |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index 67cded8..50d4936 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -4,6 +4,9 @@
 {{- $funcPath := "js/functions.js" }}
 {{- $functions := resources.Get $funcPath | resources.ExecuteAsTemplate $funcPath . }}
 
+{{- $codePath := "js/code.js" }}
+{{- $code := resources.Get $codePath | resources.ExecuteAsTemplate $codePath . }}
+
 {{- $fusePath := "js/fuse.js" }}
 {{- $fuse := resources.Get $fusePath | resources.ExecuteAsTemplate $fusePath . }}
 
@@ -13,7 +16,7 @@
 {{- $mainScriptPath := "js/index.js" }}
 {{- $main := resources.Get $mainScriptPath | resources.ExecuteAsTemplate $mainScriptPath . }}
 
-{{- $bundle := slice $variables $functions $main | resources.Concat "js/bundle.js" | resources.Minify | resources.Fingerprint "sha512" }}
+{{- $bundle := slice $variables $functions $code $main | resources.Concat "js/bundle.js" | resources.Fingerprint "sha512" }}
 {{- $bundle2 := slice $fuse $search | resources.Concat "js/search.js" | resources.Fingerprint "sha512" }}
 <script src="{{ $bundle.Permalink }}"></script>
 <script src="{{ $bundle2.Permalink }}" async defer></script>

--
Gitblit v1.10.0