fix: subtitle
This commit is contained in:
parent
da20d7b3c9
commit
2184d5f5ee
@ -77,7 +77,9 @@ menu:
|
||||
# https://github.com/mattboldt/typed.js
|
||||
subtitle:
|
||||
enable: true
|
||||
text: a clean and elegant theme
|
||||
text: A clean and elegant theme
|
||||
text2: It's perfect for your hexo blog
|
||||
text3: Have fun! #Supports up to three lines of text
|
||||
startDelay: 0
|
||||
typeSpeed: 200
|
||||
loop: true
|
||||
|
@ -13,6 +13,8 @@ menu:
|
||||
subtitle:
|
||||
enable: true # 是否开启动效
|
||||
text: 面朝大海,春暖花开 # 显示的文字
|
||||
text2: 愿你一生努力,一生被爱 # 滚动播放,如果不需要可以留空
|
||||
text3: 想要的都拥有,得不到的都释怀 # 最多支持三段文字
|
||||
startDelay: 0 # 延迟时间
|
||||
typeSpeed: 200 # 打字速度
|
||||
loop: true # 是否循环
|
||||
|
@ -10,7 +10,7 @@
|
||||
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.0.11/lib/typed.min.js"></script>
|
||||
<script>
|
||||
var typed = new Typed("#subtitle", {
|
||||
strings: ['<%= theme.subtitle.text %>'],
|
||||
strings: ['<%= theme.subtitle.text %>','<%= theme.subtitle.text2 %>','<%= theme.subtitle.text3 %>'],
|
||||
startDelay: <%= theme.subtitle.startDelay %>,
|
||||
typeSpeed: <%= theme.subtitle.typeSpeed %>,
|
||||
loop: <%= theme.subtitle.loop %>,
|
||||
|
Loading…
Reference in New Issue
Block a user