Browse Source

refactor(layouts): kick off async script loading sooner

resolves script error in hall of mirrors module
Josh Habdas 1 year ago
parent
commit
329a4ca827
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      layouts/_default/baseof.html

+ 1
- 1
layouts/_default/baseof.html View File

@@ -22,6 +22,7 @@
22 22
       {{ partial "head/site-verification.html" . }}
23 23
     {{ end }}
24 24
     {{ partial "meta/http-referrer.html" . }}
25
+    {{ partial "async-scripts.html" . }}
25 26
     {{ partial "modules.html" . }}
26 27
     {{ if .RSSLink }}
27 28
       <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}">
@@ -35,7 +36,6 @@
35 36
     {{ end }}
36 37
     {{ partial "head/favicon.html" . }}
37 38
     {{ partial "global-styles.html" . }}
38
-    {{ partial "async-scripts.html" . }}
39 39
     {{ $highlights := findRE "class\\s*?=\\s*?\".*?\\bhighlight\\b.*?\"|class\\s*?=\\s*?highlight\\b" .Content }}
40 40
     {{ if ge (len $highlights) 1 }}
41 41
       <script>fetchInject([{{ "/css/syntax.css" | relURL }}])</script>

Loading…
Cancel
Save