Skip to content

Commit

Permalink
Merge pull request #210 from DingJunyao/dev
Browse files Browse the repository at this point in the history
友链页面的“钓鱼”功能,在主题设置中的朋友圈功能未开启时仍然显示,实际无作用,影响功能美观;现将其在此情况下隐藏
  • Loading branch information
anzhiyu-c authored Jul 7, 2024
2 parents 53caf67 + c440ac2 commit cca3a45
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions layout/includes/page/flink.pug
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,16 @@
img.no-lightbox(title=evenNum[index].name, src=url_for(evenNumAvatar + hundredSuffix) onerror=`this.onerror=null;this.src='` + url_for(theme.error_img.flink) + `'` alt=evenNum[index].name)
a.tags-group-icon.no-text-decoration(href=url_for(oddNum[index].link), title=oddNum[index].name)
img.no-lightbox(title=oddNum[index].name, src=url_for(oddNumAvatar + hundredSuffix) onerror=`this.onerror=null;this.src='` + url_for(theme.error_img.flink) + `'` alt=oddNum[index].name)
.title-h2-a
.title-h2-a-left
h2(style='padding-top:0;margin:.6rem 0 .6rem') 🎣 钓鱼
a.random-post-start.no-text-decoration(href='javascript:fetchRandomPost();')
i.anzhiyufont.anzhiyu-icon-arrow-rotate-right
.title-h2-a-right
a.random-post-all.no-text-decoration(href='/link/') 全部友链
#random-post
script(defer data-pjax src=url_for(theme.asset.random_friends_post_js))
if theme.friends_vue && theme.friends_vue.enable
.title-h2-a
.title-h2-a-left
h2(style='padding-top:0;margin:.6rem 0 .6rem') 🎣 钓鱼
a.random-post-start.no-text-decoration(href='javascript:fetchRandomPost();')
i.anzhiyufont.anzhiyu-icon-arrow-rotate-right
.title-h2-a-right
a.random-post-all.no-text-decoration(href='/link/') 全部友链
#random-post
script(defer data-pjax src=url_for(theme.asset.random_friends_post_js))

.flink
if site.data.link
Expand Down

0 comments on commit cca3a45

Please sign in to comment.