update theme butterfly
This commit is contained in:
@@ -3,6 +3,7 @@ extends includes/layout.pug
|
||||
block content
|
||||
include ./includes/mixins/article-sort.pug
|
||||
#archive
|
||||
#posts-chart(data-start="2025-01" style="height: 300px; padding: 10px;")
|
||||
.article-sort-title= `${_p('page.articles')} - ${getArchiveLength()}`
|
||||
+articleSort(page.posts)
|
||||
include includes/pagination.pug
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -1 +1,2 @@
|
||||
.category-lists!= list_categories()
|
||||
.category-lists!= list_categories()
|
||||
<div id="categories-chart" data-parent="true" style="height: 300px; padding: 10px;"></div>
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -6,6 +6,8 @@ block content
|
||||
include includes/header/post-info.pug
|
||||
|
||||
article#article-container.container.post-content
|
||||
if page.summary && theme.ai_summary.enable
|
||||
include includes/post/post-summary.pug
|
||||
if theme.noticeOutdate.enable && page.noticeOutdate !== false
|
||||
include includes/post/outdate-notice.pug
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user