Squashed commit of the following:

commit 6430e78c16
Merge: 5855527 b13bbc3
Author: Dillon <dillonzq@outlook.com>
Date:   Wed Feb 19 19:31:28 2020 +0800

    Merge pull request #84 from dillonzq/fix/duplicated_typeit

    fix(typeit): fix duplicated typeit bug (#82)

commit b13bbc368c
Author: Dillon <dillonzq@outlook.com>
Date:   Wed Feb 19 19:25:49 2020 +0800

    fix(typeit): fix duplicated typeit bug (#82)

commit 58555274f5
Merge: 16320fa 02919a7
Author: Dillon <dillonzq@outlook.com>
Date:   Wed Feb 19 18:59:21 2020 +0800

    Merge pull request #83 from dillonzq/fix/social_link_href

    fix(social): fix social link bug (#81)

commit 02919a7d48
Author: Dillon <dillonzq@outlook.com>
Date:   Wed Feb 19 18:55:40 2020 +0800

    fix(social): fix social link bug (#81)
This commit is contained in:
Dillon
2020-02-20 11:55:52 +08:00
parent f3eb6fc520
commit 315eb094e5
6 changed files with 11 additions and 10 deletions

View File

@@ -1,4 +1,5 @@
{{- $CDN := .Scratch.Get "CDN" -}}
{{- $localScratch := newScratch -}}
{{- /* Fork Awesome https://forkaweso.me/ */ -}}
{{- if .Scratch.Get "forkawesome" -}}
@@ -41,10 +42,10 @@
{{- slice "js/lib/typeit/typeit.min.js" | $.Scratch.Add "scriptLocal" -}}
{{- end -}}
{{- range $key, $val := . -}}
{{- slice $val | $.Scratch.Add "typeitArr" -}}
{{- slice $val | $localScratch.Add "typeitArr" -}}
{{- end -}}
<script>
window.typeitArr = {{ $.Scratch.Get "typeitArr" | jsonify | safeJS }};
window.typeitArr = {{ $localScratch.Get "typeitArr" | jsonify | safeJS }};
</script>
{{- end -}}