[opt] toc

This commit is contained in:
xaoxuu 2024-02-05 18:39:09 +08:00
parent c459d0b7e9
commit 524fc2937e
4 changed files with 5 additions and 4 deletions

View File

@ -34,7 +34,7 @@ toc:
collapse: false # true / false / auto
# 编辑本文按钮
edit_this_page: # 从开头开始匹配替换
'_posts/': https://github.com/xaoxuu/xaoxuu.com/blob/main/source/_posts/
'_posts/': # https://github.com/xaoxuu/xaoxuu.com/blob/main/source/_posts/
'wiki/stellar/': https://github.com/xaoxuu/hexo-theme-stellar-docs/blob/main/
# GitHub 用户信息

View File

@ -3,7 +3,7 @@ function parseURL() {
const source = page.source || ''
var url
for (let id of Object.keys(map)) {
if (source.startsWith(id)) {
if (source.startsWith(id) && map[id]) {
return source.replace(id, map[id])
}
}

View File

@ -1,10 +1,12 @@
.widget-wrapper.timeline
.widget-body
margin-top: 0.5rem
overflow hidden
.body
a
trans1 all
border-bottom: 1px solid var(--text)
word-break: break-all
color: var(--text-p1)
--fsp: $fsp2
&:hover

View File

@ -67,14 +67,13 @@
.l_right .widgets
.widget-wrapper
margin-top: 8px
margin-bottom: 32px
.widget-header
padding-left: var(--gap-max)
padding-right: var(--gap-max)
&:not(.toc)
margin-left: var(--gap-margin)
margin-right: var(--gap-margin)
.widget-wrapper+.widget-wrapper
margin-top: 32px
@media screen and (max-width: $device-laptop)
.widget-wrapper
margin-top: var(--gap-margin)