Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/cupper-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwbetz <zwbetz@gmail.com>2020-06-03 05:14:46 +0300
committerzwbetz <zwbetz@gmail.com>2020-06-03 05:14:46 +0300
commit1ca724981052ff0b3e7ed49a05fc0c6c16ced544 (patch)
tree95320da0ec1f36d8724c352363f2ce3dc43285a7 /layouts
parentb1b83b6fe6a9a390fdd84b52d803b27d01e68efc (diff)
add param to set dark theme as default
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/script.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/partials/script.html b/layouts/partials/script.html
index f8d831f..95ebeb2 100644
--- a/layouts/partials/script.html
+++ b/layouts/partials/script.html
@@ -1,2 +1,5 @@
<script src="{{ "js/prism.js" | absURL }}"></script>
-<script src="{{ "js/dom-scripts.js" | absURL }}"></script>
+
+{{ $templateDomScripts := resources.Get "js/template-dom-scripts.js" }}
+{{ $domScripts := $templateDomScripts | resources.ExecuteAsTemplate "js/dom-scripts.js" . }}
+<script src="{{ $domScripts.Permalink }}"></script>