Skip to content

Commit

Permalink
🐛 Fix: typo in typeit initialization
Browse files Browse the repository at this point in the history
Oops! O><O||| 🍻
  • Loading branch information
Lruihao committed Sep 10, 2024
1 parent 617e2df commit b76e6af
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ class FixIt {
waitUntilVisible: true,
loop: singleData.loop ? singleData.loop === 'true' : loop,
afterComplete: () => {
const duration = Number(singleData.duration ?? vtypeitConfig.duration);
const duration = Number(singleData.duration ?? typeitConfig.duration);
if (i === group.length - 1) {
if (duration >= 0) {
window.setTimeout(() => {
Expand Down
2 changes: 1 addition & 1 deletion assets/lib/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ [email protected] https://github.com/ellisonleao/sharer.js
[email protected] https://github.com/simple-icons/simple-icons
[email protected] https://github.com/twitter/twemoji
[email protected] https://github.com/imaegoo/twikoo
typeit@8.7.1 https://github.com/alexmacarthur/typeit
typeit@8.8.4 https://github.com/alexmacarthur/typeit
[email protected] https://github.com/xCss/Valine
[email protected] https://github.com/walinejs/waline
[email protected] https://github.com/jungomi/xxhash-wasm
2 changes: 1 addition & 1 deletion layouts/partials/home/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h1 class="home-title">
{{- if $profile.typeit -}}
<span class="d-none">{{ . }}</span>
{{- $.Store.Set "hasTyped" true -}}
<span class="typeit"><template>{{ . }}</template></span>
<span class="typeit"><template>{{ . | safeHTML }}</template></span>
{{- else -}}
{{- . | safeHTML -}}
{{- end -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/init/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- .Scratch.Set "version" "v0.3.12-dafc2665" -}}
{{- .Scratch.Set "version" "v0.3.12-617e2df2" -}}
{{- .Scratch.Set "this" dict -}}

{{- partial "init/detection-env.html" . -}}
Expand Down

0 comments on commit b76e6af

Please sign in to comment.