mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 19:40:55 +08:00
feat: gallery 標簽外掛增加圖片懶加載,增加 lazyload rowHeight 和 limit 屬性配置 feat: 可設置固定導航欄 closed #1150 fix: 修復開啟懶加載後,再使用 flink_url 的方式引入友鏈數據,友鏈頭像有可能不顯示的 bug closed #1146 fix: 修復閲讀模式下,代碼塊的背景顏色仍顯示彩色背景的 bug (自定義代碼塊) closed #1139 improvement: 搜索結果換行時不會拆分單詞顯示 improvement: 優化搜索結果顯示滾動條位置 improvement: css/js 優化
23 lines
681 B
Plaintext
23 lines
681 B
Plaintext
- const isFixedClass = theme.nav.fixed ? 'fixed' : ''
|
|
nav#nav(class=isFixedClass)
|
|
span#blog-info
|
|
a(href=url_for('/') title=config.title)
|
|
if theme.nav.logo
|
|
img.site-icon(src=url_for(theme.nav.logo))
|
|
if theme.nav.display_title
|
|
span.site-name=config.title
|
|
|
|
#menus
|
|
if (theme.algolia_search.enable || theme.local_search.enable)
|
|
#search-button
|
|
a.site-page.social-icon.search(href="javascript:void(0);")
|
|
i.fas.fa-search.fa-fw
|
|
span=' '+_p('search.title')
|
|
!=partial('includes/header/menu_item', {}, {cache: true})
|
|
|
|
#toggle-menu
|
|
a.site-page(href="javascript:void(0);")
|
|
i.fas.fa-bars.fa-fw
|
|
|
|
|