Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
chore: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed Aug 7, 2019
1 parent cf4b33a commit 6d188f2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions layouts/partials/js.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,39 @@
{{ $dynamicToTop := resources.Get "/js/dynamicToTop.min.js" }}
{{ $lightGallery_init := resources.Get "/js/lightGallery-init.js" }}

<!-- jQuery https://github.com/jquery/jquery -->
{{ $jquery := `
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js" integrity="sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8=" crossorigin="anonymous"></script>
` }}
<!-- JavaScript code prettifier https://github.com/google/code-prettify -->
{{ $prettify := `
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src/prettify.js" integrity="sha256-w3n8zE0N1lx/nrrWA16Dk7KnySbJF7cPs5E2CByeB7A=" crossorigin="anonymous"></script>
` }}
<!-- lightGallery https://github.com/sachinchoolur/lightGallery -->
{{ $lightGallery := `
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/lightgallery.min.css" integrity="sha256-8rfHbJr+ju3Oc099jFJMR1xAPu8CTPHU8uP5J3X/VAY=" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/lightgallery-all.min.js" integrity="sha256-w14QFJrxOYkUnF0hb8pVFCSgYcsF0hMIKrqGb8A7J8A=" crossorigin="anonymous"></script>
` }}
<!-- lazysizes https://github.com/aFarkas/lazysizes -->
{{ $lazysizes := `
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lazysizes.min.js" integrity="sha256-6zKmNZVeImc0d1Y55vm4So/0W5mbwWiPS4zJt3F4t2A=" crossorigin="anonymous"></script>
` }}
<!-- KaTeX https://github.com/KaTeX/KaTeX -->
{{ $katex := `
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-yFRtMMDnQtDRO8rLpMIKrtPCD5jdktao2TV19YiZYWMDkUR5GQZR/NOVTdquEx1j" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-9Nhn55MVVN0/4OFx7EE5kpFBPsEMZxKTCnA+4fqDmg12eCTqGi6+BB2LjY8brQxJ" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
` }}
<!-- Typed.js https://github.com/mattboldt/typed.js -->
{{ $typed := `
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/typed.min.js" integrity="sha256-F6VRM94CIE3Kv2zkAtbzlViDfZ3HMaIgusIcFBPIjiU=" crossorigin="anonymous"></script>
` }}

<!-- jQuery -->
{{ $jquery | safeHTML }}

{{ if .IsPage }}
{{ $prettify | safeHTML }}
{{ $typed | safeHTML }}
{{ $scripts = $scripts | append $dynamicToTop }}

{{ if $postHasImages }}
Expand All @@ -40,7 +49,6 @@
{{ $scripts = $scripts | resources.Concat "/js/vendor_no_gallery.js" | resources.Minify }}
{{ end }}

<!-- KaTeX -->
{{ if or .Params.Math .Site.Params.Math }}
{{ $katex | safeHTML }}
{{ end }}
Expand Down

0 comments on commit 6d188f2

Please sign in to comment.