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

Commit

Permalink
fix(typeit): fix duplicated typeit bug (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed Feb 19, 2020
1 parent 5855527 commit b13bbc3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/css/_partial/_pagination.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
list-style: none;
white-space: nowrap;
width: 100%;
padding-top: 1rem;
padding: 1rem 0 0;

a {
-webkit-font-smoothing: antialiased;
Expand Down
5 changes: 3 additions & 2 deletions layouts/partials/script.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- $CDN := .Scratch.Get "CDN" -}}
{{- $localScratch := newScratch -}}

{{- /* Fork Awesome https://forkaweso.me/ */ -}}
{{- if .Scratch.Get "forkawesome" -}}
Expand Down Expand Up @@ -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 -}}

Expand Down

Large diffs are not rendered by default.

0 comments on commit b13bbc3

Please sign in to comment.