mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-02-02 11:32:30 -06:00
Merge pull request #411 from nunocoracao/406-bug-typeit-integration-not-working
🐛 fixed typeit integration
This commit is contained in:
commit
09be906861
1 changed files with 36 additions and 32 deletions
|
@ -3,39 +3,43 @@
|
||||||
{{ $mermaidLib := resources.Get "lib/mermaid/mermaid.min.js" }}
|
{{ $mermaidLib := resources.Get "lib/mermaid/mermaid.min.js" }}
|
||||||
{{ $mermaidConfig := resources.Get "js/mermaid.js" }}
|
{{ $mermaidConfig := resources.Get "js/mermaid.js" }}
|
||||||
{{ $mermaidConfig := $mermaidConfig | resources.Minify }}
|
{{ $mermaidConfig := $mermaidConfig | resources.Minify }}
|
||||||
{{ $mermaidJS := slice $mermaidLib $mermaidConfig | resources.Concat "js/mermaid.bundle.js" | resources.Fingerprint "sha512" }}
|
{{ $mermaidJS := slice $mermaidLib $mermaidConfig | resources.Concat "js/mermaid.bundle.js" | resources.Fingerprint
|
||||||
<script defer type="text/javascript" src="{{ $mermaidJS.RelPermalink }}" integrity="{{ $mermaidJS.Data.Integrity }}"></script>
|
"sha512" }}
|
||||||
|
<script defer type="text/javascript" src="{{ $mermaidJS.RelPermalink }}"
|
||||||
|
integrity="{{ $mermaidJS.Data.Integrity }}"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{/* Chart */}}
|
{{/* Chart */}}
|
||||||
{{ if .Page.HasShortcode "chart" }}
|
{{ if .Page.HasShortcode "chart" }}
|
||||||
{{ $chartLib := resources.Get "lib/chart/chart.min.js" }}
|
{{ $chartLib := resources.Get "lib/chart/chart.min.js" }}
|
||||||
{{ $chartConfig := resources.Get "js/chart.js" }}
|
{{ $chartConfig := resources.Get "js/chart.js" }}
|
||||||
{{ $chartConfig := $chartConfig | resources.Minify }}
|
{{ $chartConfig := $chartConfig | resources.Minify }}
|
||||||
{{ $chartJS := slice $chartLib $chartConfig | resources.Concat "js/chart.bundle.js" | resources.Fingerprint "sha512" }}
|
{{ $chartJS := slice $chartLib $chartConfig | resources.Concat "js/chart.bundle.js" | resources.Fingerprint "sha512" }}
|
||||||
<script defer type="text/javascript" src="{{ $chartJS.RelPermalink }}" integrity="{{ $chartJS.Data.Integrity }}"></script>
|
<script defer type="text/javascript" src="{{ $chartJS.RelPermalink }}"
|
||||||
|
integrity="{{ $chartJS.Data.Integrity }}"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{/* Katex */}}
|
{{/* Katex */}}
|
||||||
{{ if .Page.HasShortcode "katex" }}
|
{{ if .Page.HasShortcode "katex" }}
|
||||||
{{ $katexCSS := resources.Get "lib/katex/katex.min.css" }}
|
{{ $katexCSS := resources.Get "lib/katex/katex.min.css" }}
|
||||||
{{ $katexCSS := $katexCSS | resources.Fingerprint "sha512" }}
|
{{ $katexCSS := $katexCSS | resources.Fingerprint "sha512" }}
|
||||||
<link
|
<link type="text/css" rel="stylesheet" href="{{ $katexCSS.RelPermalink }}" integrity="{{ $katexCSS.Data.Integrity }}" />
|
||||||
type="text/css" rel="stylesheet"
|
|
||||||
href="{{ $katexCSS.RelPermalink }}"
|
|
||||||
integrity="{{ $katexCSS.Data.Integrity }}"
|
|
||||||
/>
|
|
||||||
{{ $katexJS := resources.Get "lib/katex/katex.min.js" }}
|
{{ $katexJS := resources.Get "lib/katex/katex.min.js" }}
|
||||||
{{ $katexJS := $katexJS | resources.Fingerprint "sha512" }}
|
{{ $katexJS := $katexJS | resources.Fingerprint "sha512" }}
|
||||||
<script defer src="{{ $katexJS.RelPermalink }}" integrity="{{ $katexJS.Data.Integrity }}"></script>
|
<script defer src="{{ $katexJS.RelPermalink }}" integrity="{{ $katexJS.Data.Integrity }}"></script>
|
||||||
{{ $katexRenderJS := resources.Get "lib/katex/auto-render.min.js" }}
|
{{ $katexRenderJS := resources.Get "lib/katex/auto-render.min.js" }}
|
||||||
{{ $katexRenderJS := $katexRenderJS | resources.Fingerprint "sha512" }}
|
{{ $katexRenderJS := $katexRenderJS | resources.Fingerprint "sha512" }}
|
||||||
<script defer src="{{ $katexRenderJS.RelPermalink }}" integrity="{{ $katexRenderJS.Data.Integrity }}" onload="renderMathInElement(document.body);"></script>
|
<script defer src="{{ $katexRenderJS.RelPermalink }}" integrity="{{ $katexRenderJS.Data.Integrity }}"
|
||||||
|
onload="renderMathInElement(document.body);"></script>
|
||||||
{{ $katexFonts := resources.Match "lib/katex/fonts/*" }}
|
{{ $katexFonts := resources.Match "lib/katex/fonts/*" }}
|
||||||
{{ range $katexFonts }}
|
{{ range $katexFonts }}
|
||||||
<!-- {{ .RelPermalink }} -->
|
<!-- {{ .RelPermalink }} -->
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{/* TypeIt */}}
|
{{/* TypeIt */}}
|
||||||
{{ if .Page.HasShortcode "typeit" }}
|
{{ if .Page.HasShortcode "typeit" }}
|
||||||
{{ $typeitLib := resources.Get "lib/typeit/typeit.umd.js" }}
|
{{ $typeitLib := resources.Get "lib/typeit/typeit.umd.js" }}
|
||||||
<script defer type="text/javascript" src="{{ $typeitLib.RelPermalink }}" integrity="{{ $typeitLib.Data.Integrity }}"></script>
|
<script defer src="{{ $typeitLib.RelPermalink }}" integrity="{{ $typeitLib.Data.Integrity }}"
|
||||||
{{ end }}
|
onload="renderTypeItElements();"></script>
|
||||||
{{ end }}
|
{{ end }}
|
Loading…
Reference in a new issue