mirror of
https://github.com/dillonzq/LoveIt.git
synced 2025-03-13 11:18:15 +01:00
fix(typeit): fix duplicated typeit bug (#82)
This commit is contained in:
parent
58555274f5
commit
b13bbc368c
3 changed files with 5 additions and 4 deletions
assets/css/_partial
layouts/partials
resources/_gen/assets/scss/css
|
@ -6,7 +6,7 @@
|
|||
list-style: none;
|
||||
white-space: nowrap;
|
||||
width: 100%;
|
||||
padding-top: 1rem;
|
||||
padding: 1rem 0 0;
|
||||
|
||||
a {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
|
|
|
@ -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 -}}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue