Skip to content

Commit 4ee9ccf

Browse files
committed
feat: add rotate for preloader
1 parent dedd286 commit 4ee9ccf

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ preloader:
390390
enable: true
391391
text: 少女祈祷中...
392392
icon: # default use inline svg for fast speed, you can use a image url, like '/images/taichi.png'
393+
rotate: true # whether to rotate the icon
393394

394395
# see https://github.com/D-Sketon/aos.js
395396
animation:

layout/_partial/loader.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="loading-left-bg loading-bg"></div>
44
<div class="loading-right-bg loading-bg"></div>
55
<div class="spinner-box">
6-
<div class="loading-taichi">
6+
<div class="loading-taichi <%- theme.preloader.rotate ? 'rotate' : '' %>">
77
<% if (theme.preloader.icon) { %>
88
<img src="<%- url_for(theme.preloader.icon, {relative: false})%>" alt="loading" />
99
<% } else { %>

scripts/helper/shareLink.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const shareMap = {
2-
weibo: (url, title) => `http://service.weibo.com/share/share.php?url=${url}&appkey=&title=${title}&pic=&ralateUid=`,
2+
weibo: (url, title) => `https://service.weibo.com/share/share.php?url=${url}&appkey=&title=${title}&pic=&ralateUid=`,
33
facebook: (url) => `https://www.facebook.com/sharer/sharer.php?u=${url}`,
44
twitter: (url, title, desc, source) => `https://twitter.com/intent/tweet?url=${url}&text=${title}&via=${source}`,
55
linkedin: (url, title, desc) => `https://www.linkedin.com/shareArticle?url=${url}&title=${title}&summary=${desc}&mini=true&ro=true`,
66
reddit: (url, title) => `https://www.reddit.com/submit?url=${url}&title=${title}`,
7-
qq: (url, title, desc, source) => `http://connect.qq.com/widget/shareqq/index.html?url=${url}&title=${title}&desc=${desc}&source=${source}`,
7+
qq: (url, title, desc, source) => `https://connect.qq.com/widget/shareqq/index.html?url=${"www.baidu.com"}&title=${title}&desc=${desc}&source=${source}`,
88
weixin: () => `javascript:;`,
99
}
1010

source/css/loader.styl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131

3232
.loading-taichi
3333
opacity: .8
34+
35+
.rotate
3436
animation: rotate-all 2s linear infinite
3537

3638
.loading-word

0 commit comments

Comments
 (0)