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

github.com/jakewies/hugo-theme-codex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent <kentnek@users.noreply.github.com>2020-06-24 21:10:47 +0300
committerGitHub <noreply@github.com>2020-06-24 21:10:47 +0300
commitd713ed3ed502f9c11d99e572e98108808b76d331 (patch)
treefd4b508a76ec38dc3d0059429aee0a4e79edb199 /layouts
parentb3b898050ca8d2c585080e736b187b79ce29bfe0 (diff)
parentae59e12798a0dbbd9454729e62da13cd5239f4f6 (diff)
Merge pull request #50 from jlebar/prismjs
Change how prismjs is loaded.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 4857f1c..e1ee0a5 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -32,5 +32,8 @@
{{ end }}
{{ define "scripts" }}
- <script src="https://unpkg.com/prismjs@^1.2"></script>
+ {{/* Hardcode a specific prismjs version to avoid a redirect on every page load. */}}
+ <script src="https://unpkg.com/prismjs@1.20.0/components/prism-core.min.js"></script>
+ <script src="https://unpkg.com/prismjs@1.20.0/plugins/autoloader/prism-autoloader.min.js"
+ data-autoloader-path="https://unpkg.com/prismjs@1.20.0/components/"></script>
{{ end }}