mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 20:30:53 +08:00
improvement: 網站資料顯示,但標籤和分類為0時,數量顯示為 0,而不是隱藏 improvement: subtitle 代碼優化, 1.當source設為false,同時sub也沒有配置,將會讀取hexo配置文件的 subtitle,2.無須使用轉義字符 improvement: 禁止ios點擊搜索框,頁面放大的問題
33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
if theme.aside.card_author.enable
|
|
.card-widget.card-info
|
|
.is-center
|
|
.avatar-img
|
|
img(src=url_for(theme.avatar.img) onerror=`this.onerror=null;this.src='` + url_for(theme.error_img.flink) + `'` alt="avatar")
|
|
.author-info__name= config.author
|
|
.author-info__description!= theme.aside.card_author.description || config.description
|
|
|
|
.card-info-data.is-center
|
|
.card-info-data-item
|
|
a(href=url_for(config.archive_dir) + '/')
|
|
.headline= _p('aside.articles')
|
|
.length-num= site.posts.length
|
|
|
|
.card-info-data-item
|
|
a(href=url_for(config.tag_dir) + '/')
|
|
.headline= _p('aside.tags')
|
|
.length-num= site.tags.length
|
|
|
|
.card-info-data-item
|
|
a(href=url_for(config.category_dir) + '/')
|
|
.headline= _p('aside.categories')
|
|
.length-num= site.categories.length
|
|
|
|
if theme.aside.card_author.button.enable
|
|
a#card-info-btn.button--animated(href=theme.aside.card_author.button.link)
|
|
i(class=theme.aside.card_author.button.icon)
|
|
span=theme.aside.card_author.button.text
|
|
|
|
if(theme.social)
|
|
.card-info-social-icons.is-center
|
|
!=fragment_cache('social', function(){return partial('includes/header/social')})
|