Skip to content

Commit

Permalink
Merge pull request #424 from everfu/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
everfu authored Nov 30, 2024
2 parents f2463a0 + fe3a2c2 commit 16a5462
Show file tree
Hide file tree
Showing 14 changed files with 52 additions and 17 deletions.
1 change: 1 addition & 0 deletions languages/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ console:
switch_keyboard: 键盘快捷键
switch_music: 音乐开关
archive_unit:
archive_all: 全部文章
recent_comment_more: 最近评论
newest_comment:
image: 图片
Expand Down
1 change: 1 addition & 0 deletions languages/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ console:
switch_keyboard: Keyboard operation
switch_music: Music switch
archive_unit: Posts
archive_all: All posts
recent_comment_more: Recent comments
newest_comment:
image: Image
Expand Down
1 change: 1 addition & 0 deletions languages/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ console:
switch_keyboard: 键盘快捷键
switch_music: 音乐开关
archive_unit:
archive_all: 全部文章
recent_comment_more: 最近评论
newest_comment:
image: 图片
Expand Down
1 change: 1 addition & 0 deletions languages/zh-TW.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ console:
switch_keyboard: 鍵盤快捷鍵
switch_music: 音樂開關
archive_unit:
archive_all: 全部文章
recent_comment_more: 最近評論
newest_comment:
image: 圖片
Expand Down
2 changes: 1 addition & 1 deletion layout/includes/inject/body.pug
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ div
script(src=url_for(theme.cdn.cover_ave))

if theme.loading.pace
script(src=url_for(theme.cdn.pace_js))
include ../mixins/pace.pug

if theme.search.enable && theme.search.type === "algolia"
script(src=url_for(theme.cdn.instantsearch))
Expand Down
10 changes: 10 additions & 0 deletions layout/includes/mixins/pace.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
script.
window.paceOptions = {
restartOnPushState: false
}

utils.addGlobalFn('pjaxSend', () => {
Pace.restart()
}, 'pace_restart')

script(src=url_for(theme.cdn.pace_js))
2 changes: 1 addition & 1 deletion layout/includes/rightside.pug
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#rightside
#rightside.needEndHide
include ./widgets/rightside/hide
include ./widgets/rightside/show
8 changes: 7 additions & 1 deletion layout/includes/widgets/aside/asideArchive.pug
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@ ul.card-archive-list
span.card-archive-list-date= key
.card-archive-list-count-group
span.card-archive-list-count= value
span.card-archive-list-count-unit= __('console.archive_unit')
span.card-archive-list-count-unit= __('console.archive_unit')
li.card-archive-list-item
a.card-archive-list-link(href='/archives/')
span.card-archive-list-date= __('console.archive_all')
.card-archive-list-count-group
span.card-archive-list-count= site.posts.length
span.card-archive-list-count-unit= __('console.archive_unit')
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-theme-solitude",
"version": "2.1.10",
"version": "2.1.11",
"description": "A beautiful, powerful, and efficient Hexo theme developed by everfu.",
"main": "package.json",
"scripts": {
Expand Down
7 changes: 4 additions & 3 deletions plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ snackbar:
file: dist/snackbar.min.js
version: 0.1.16
fontawesome:
name: font-awesome
name: '@fortawesome/fontawesome-free'
file: css/all.min.css
version: 6.6.0
version: 6.7.1
other_name: font-awesome
medium_zoom:
name: medium-zoom
file: dist/medium-zoom.min.js
Expand All @@ -114,7 +115,7 @@ chart_js:
other_name: Chart.js
typeit_js:
name: typeit
file: index.umd.min.js
file: dist/index.umd.min.js
version: 8.8.7
other_name: typeit
blueimp_md5:
Expand Down
16 changes: 8 additions & 8 deletions source/css/_layout/console.styl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
transform translateY(20px)
transition .3s
max-width 1400px
min-width 1000px

+maxWidth1300()
justify-content center
Expand All @@ -58,7 +57,7 @@
width 40%
height 100%

+maxWidth1300()
+maxWidth900()
display none

.console-card-group-right
Expand All @@ -69,8 +68,8 @@
width 60%
overflow hidden

+maxWidth1300()
display none
+maxWidth900()
width 100%

.console-card
background var(--efu-maskbg)
Expand Down Expand Up @@ -134,8 +133,8 @@
width fit-content

.console-btn-item
width 60px
height 60px
width 80px
height 40px
transition .3s
cursor pointer

Expand All @@ -162,7 +161,8 @@
align-items center
justify-content center
color var(--efu-fontcolor)
transition all .3s
transition .3s
box-shadow var(--efu-shadow-border)

i
font-size 1rem
Expand Down Expand Up @@ -254,7 +254,7 @@
gap .5rem

li.card-archive-list-item
flex 0 1 24.101%
flex 0 1 calc(25% - .375rem)

.card-archive-list-link
border-radius 8px
Expand Down
4 changes: 4 additions & 0 deletions source/css/_layout/header.styl
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@
opacity 1
transition .3s
line-height 1
width 70%
overflow hidden
text-overflow ellipsis
white-space nowrap

&:hover
&:after
Expand Down
5 changes: 5 additions & 0 deletions source/css/_layout/rightside.styl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ if hexo-config('rightside.enable')
z-index: 1000
opacity: 0
transition: all .5s
&.needEndHide
display block!important
&.hide.needEndHide
bottom 0!important
transform: none !important

button
display: block
Expand Down
9 changes: 7 additions & 2 deletions source/css/_page/recentcomment.styl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ div.console_recentcomments
min-height 100px
width 100%

+maxWidth1300()
overflow-y scroll
scrollbar-width none

.comment-card
position relative
width calc(100% / 3 - 8px)
Expand All @@ -22,8 +26,9 @@ div.console_recentcomments
.console-card &
width calc(100% / 2 - 8px)

+maxWidth900()
width calc(100% / 2 - 6px)
+maxWidth1300()
min-width 100%
height calc(100% / 3 - 8px)

+maxWidth768()
width 100%
Expand Down

0 comments on commit 16a5462

Please sign in to comment.