update theme butterfly

This commit is contained in:
2026-02-08 09:59:20 +08:00
parent 46c8721ff0
commit ebf7e1c464
8 changed files with 26 additions and 10 deletions

View File

@@ -13,14 +13,21 @@ nav#nav
span= ' ' + _p('post.back_to_home')
#menus
if theme.search.use
#search-button
span.site-page.social-icon.search
i.fas.fa-search.fa-fw
span= ' ' + _p('search.title')
//- if theme.search.use
//- #search-button
//- span.site-page.social-icon.search
//- i.fas.fa-search.fa-fw
//- span= ' ' + _p('search.title')
if theme.menu
!= partial('includes/header/menu_item', {}, {cache: true})
#nav-right
if theme.search.use || true
#random-post-button
a.site-page.social-icon#random-post-link(href='javascript:void(0);' onclick='randomPost()')
i.fas.fa-solid.fa-shuffle
#search-button
a.site-page.social-icon.search-typesense-trigger
i.fas.fa-search.fa-fw
#toggle-menu
span.site-page
i.fas.fa-bars.fa-fw

View File

@@ -41,6 +41,7 @@ html(lang=config.language data-theme=theme.display_mode class=htmlClassHideAside
#body-wrap(class=pageType)
include ./header/index.pug
include ./others/memos_home.pug
main#content-inner.layout(class=hideAside)
if body
@@ -56,4 +57,5 @@ html(lang=config.language data-theme=theme.display_mode class=htmlClassHideAside
!=partial('includes/footer', {}, {cache: true})
include ./rightside.pug
include ./additional-js.pug
include ./additional-js.pug
include ./rightmenu.pug

View File

@@ -1 +1,2 @@
.category-lists!= list_categories()
.category-lists!= list_categories()
<div id="categories-chart" data-parent="true" style="height: 300px; padding: 10px;"></div>

View File

@@ -3,4 +3,5 @@ if theme.aside.card_announcement.enable
.item-headline
i.fas.fa-bullhorn.fa-shake
span= _p('aside.card_announcement')
.announcement_content!= theme.aside.card_announcement.content
.announcement_content!= theme.aside.card_announcement.content
#welcome-ip-location-info

View File

@@ -9,6 +9,7 @@
else
!=partial('includes/widget/card_author', {}, {cache: true})
!=partial('includes/widget/card_announcement', {}, {cache: true})
!=partial('includes/widget/card_poem', {}, {cache: true})
!=partial('includes/widget/card_top_self', {}, {cache: true})
.sticky_layout
if showToc
@@ -21,6 +22,7 @@
//- page
!=partial('includes/widget/card_author', {}, {cache: true})
!=partial('includes/widget/card_announcement', {}, {cache: true})
!=partial('includes/widget/card_poem', {}, {cache: true})
!=partial('includes/widget/card_top_self', {}, {cache: true})
.sticky_layout