diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-11-03 21:20:24 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-11-03 21:20:24 +0100 |
| commit | 45b7443aa8f5da1585868213728687364e99831a (patch) | |
| tree | 1de711e4fc62069183f2a4789b6524632e933a70 /themes/simple | |
| parent | 8282239d1cf73ed8e992dc121f45df29fcb2c872 (diff) | |
| download | mitjafelicijan.com-45b7443aa8f5da1585868213728687364e99831a.tar.gz | |
Exclude JS imports on homepage
Diffstat (limited to 'themes/simple')
| -rwxr-xr-x | themes/simple/layouts/partials/footer.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/themes/simple/layouts/partials/footer.html b/themes/simple/layouts/partials/footer.html index 72252c7..7383ae1 100755 --- a/themes/simple/layouts/partials/footer.html +++ b/themes/simple/layouts/partials/footer.html | |||
| @@ -6,14 +6,17 @@ | |||
| 6 | </p> | 6 | </p> |
| 7 | </footer> | 7 | </footer> |
| 8 | 8 | ||
| 9 | <!-- Fathom - beautiful, simple website analytics --> | ||
| 10 | <script src="https://cdn.usefathom.com/script.js" data-site="XHQARKXP" defer></script> | ||
| 11 | |||
| 12 | {{ if ne .IsHome true }} | ||
| 9 | <!-- KaTeX math library --> | 13 | <!-- KaTeX math library --> |
| 10 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.css" integrity="sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin="anonymous"> | 14 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.css" integrity="sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin="anonymous"> |
| 11 | <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.js" integrity="sha384-pK1WpvzWVBQiP0/GjnvRxV4mOb0oxFuyRxJlk6vVw146n3egcN5C925NCP7a7BY8" crossorigin="anonymous"></script> | 15 | <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.js" integrity="sha384-pK1WpvzWVBQiP0/GjnvRxV4mOb0oxFuyRxJlk6vVw146n3egcN5C925NCP7a7BY8" crossorigin="anonymous"></script> |
| 12 | <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/contrib/auto-render.min.js" integrity="sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script> | 16 | <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/contrib/auto-render.min.js" integrity="sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script> |
| 17 | {{ end }} | ||
| 13 | 18 | ||
| 14 | <!-- Fathom - beautiful, simple website analytics --> | 19 | {{ if ne .IsHome true }} |
| 15 | <script src="https://cdn.usefathom.com/script.js" data-site="XHQARKXP" defer></script> | ||
| 16 | |||
| 17 | <!-- Lazy loading of iframes --> | 20 | <!-- Lazy loading of iframes --> |
| 18 | <script> | 21 | <script> |
| 19 | window.addEventListener('load', () => { | 22 | window.addEventListener('load', () => { |
| @@ -48,3 +51,4 @@ | |||
| 48 | } | 51 | } |
| 49 | }); | 52 | }); |
| 50 | </script> | 53 | </script> |
| 54 | {{ end }} | ||
