Skip to content

Commit

Permalink
bug fixed and bilicdn supported
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezgx committed Apr 6, 2023
1 parent c5f1ce0 commit c212c5a
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 308 deletions.
10 changes: 1 addition & 9 deletions _config.dimension.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Main menu navigation (導航目錄)
# see https://butterfly.js.org/posts/4aa8abbe/#導航菜單
# theme dimension by echocbx
# --------------------------------------

menu:
Expand Down Expand Up @@ -634,13 +633,6 @@ theme_color:
# meta_theme_color_light: "ffffff"
# meta_theme_color_dark: "#0d0d0d"

# The top_img settings of home page
# default: top img - full screen, site info - middle (默認top_img全屏,site_info在中間)
# The position of site info, eg: 300px/300em/300rem/10% (主頁標題距離頂部距離)
index_site_info_top:
# The height of top_img, eg: 300px/300em/300rem (主頁top_img高度)
index_top_img_height:

# The user interface setting of category and tag page (category和tag頁的UI設置)
# index - same as Homepage UI (index 值代表 UI將與首頁的UI一樣)
# default - same as archives UI 默認跟archives頁面UI一樣
Expand Down
14 changes: 7 additions & 7 deletions layout/includes/console.pug
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
.console-webinfo-card
include widget/card_webinfo.pug
.button-group
.console-btn-item
a.darkmode_switchbutton(onclick='toRandomPost()', title='随机文章')
i.fas.fa-shuffle(style='font-size: 1rem;')
.console-btn-item
a.darkmode_switchbutton(href="https://travellings.cn/go.html",title='友链接力')
i.fas.fa-bus(style='font-size: 1rem;')
a.darkmode_switchbutton(onclick='toRandomPost()',title='随机文章')
i.fas.fa-shuffle.fa-beat(style='font-size: 1rem;')
.console-btn-item
a.darkmode_switchbutton(onclick="btf.scrollToDest(0,500), heo.hideConsole()")
i.fas.fa-arrows-up-to-line(style='font-size: 1rem;')
a.assist-btn(href="https://travellings.cn/go.html",title='友链接力')
i.fas.fa-bus.fa-beat(style='font-size: 1rem;')
.console-btn-item
a.assist-btn(onclick="btf.scrollToDest(0,500)")
i.fas.fa-arrows-up-to-line.fa-beat(style='font-size: 1rem;')
.console-mask
5 changes: 2 additions & 3 deletions layout/includes/header/nav.pug
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ nav#nav
i.fas.fa-search.fa-fw
span=' '+_p('search.title')

.nav-button.console-button(style="background: #1E3050; border-radius: 114514px;")
.nav-button.console-button
a.link(onclick="heo.showConsole()")
i.fa-solid.fa-plus.fa-lg(style="color: #fff;")
.reddot
i.fas.fa-gear

!=partial('includes/header/menu_item', {}, {cache: true})
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-dimension",
"version": "6.4.0",
"version": "6.4.1",
"description": "一个二次元风格的hexo主题",
"main": "package.json",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion scripts/events/cdn.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ hexo.extend.filter.register('before_generate', () => {
cdnjs_name
}
const cdnSource = {
local: cond === 'internal' ? cdnjs_file : `/pluginsSrc/${name}/${file}`,
jsdelivr: `https://cdn.jsdelivr.net/npm/${name}${verType}/${min_file}`,
bilicdn: `https://cdn.bilicdn.tk/npm/${name}${verType}/${min_file}`,
unpkg: `https://unpkg.com/${name}${verType}/${file}`,
cdnjs: `https://cdnjs.cloudflare.com/ajax/libs/${cdnjs_name}/${version}/${min_cdnjs_file}`,
bilicdn: `https://cdn.bilicdn.tk/npm/${name}${verType}/${min_file}`,
custom: (CDN.custom_format || '').replace(/\$\{(.+?)\}/g, (match, $1) => value[$1])
}

Expand Down
35 changes: 0 additions & 35 deletions scripts/tag/btns.js

This file was deleted.

43 changes: 6 additions & 37 deletions source/css/_custom/echocbx.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* .dimension */
/* Exc-UI */

/* fancybox图片灯箱 */
.fancybox__backdrop {
backdrop-filter: saturate(100%) blur(10px);
Expand Down Expand Up @@ -35,40 +36,8 @@
margin-bottom: -12.5px;
border-radius: 999px;
}
.reddot {
position: absolute;
width: 11px;
height: 11px;
background: red;
transform: translate(26px,-36px);
border-radius: 114514px;
animation: beat 1s 0.05s linear infinite;
}
@keyframes beat {
10% {
box-shadow: 0 0 0 2.5px red;
}
20% {
box-shadow: 0;
}
30% {
box-shadow: 0 0 0 2.5px red;
}
40% {
box-shadow: 0;
}
60% {
box-shadow: 0 0 0 2.5px red;
}
60% {
box-shadow: 0;
}
70% {
box-shadow: 0 0 0 2.tpx red;
}
80%, 100% {
box-shadow: 0
}
#nav.hide-menu #toggle-menu {
margin-right: 20px;
}
a#site-name:hover img {
background: rgba(255, 255, 255, 0.767);
Expand Down Expand Up @@ -643,10 +612,10 @@ div.relatedPosts-list {
#page-header {
background: transparent !important;
}
/* #page-header.full_page {
#page-header.full_page {
height: 57vh !important;
background-attachment: fixed !important;
}*/
}


/* 鼠标 */
Expand Down
2 changes: 2 additions & 0 deletions source/css/_layout/head.styl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#page-header
position: relative
width: 100%
// background-color: $light-blue
background-position: center center
background-size: cover
background-repeat: no-repeat
Expand All @@ -10,6 +11,7 @@
position: absolute
width: 100%
height: 100%
background-color: alpha($dark-black, .3)
content: ''

// index
Expand Down
Loading

0 comments on commit c212c5a

Please sign in to comment.