[opt] toc
This commit is contained in:
parent
c459d0b7e9
commit
524fc2937e
|
@ -34,7 +34,7 @@ toc:
|
||||||
collapse: false # true / false / auto
|
collapse: false # true / false / auto
|
||||||
# 编辑本文按钮
|
# 编辑本文按钮
|
||||||
edit_this_page: # 从开头开始匹配替换
|
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/
|
'wiki/stellar/': https://github.com/xaoxuu/hexo-theme-stellar-docs/blob/main/
|
||||||
|
|
||||||
# GitHub 用户信息
|
# GitHub 用户信息
|
||||||
|
|
|
@ -3,7 +3,7 @@ function parseURL() {
|
||||||
const source = page.source || ''
|
const source = page.source || ''
|
||||||
var url
|
var url
|
||||||
for (let id of Object.keys(map)) {
|
for (let id of Object.keys(map)) {
|
||||||
if (source.startsWith(id)) {
|
if (source.startsWith(id) && map[id]) {
|
||||||
return source.replace(id, map[id])
|
return source.replace(id, map[id])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
.widget-wrapper.timeline
|
.widget-wrapper.timeline
|
||||||
.widget-body
|
.widget-body
|
||||||
margin-top: 0.5rem
|
margin-top: 0.5rem
|
||||||
|
overflow hidden
|
||||||
.body
|
.body
|
||||||
a
|
a
|
||||||
trans1 all
|
trans1 all
|
||||||
border-bottom: 1px solid var(--text)
|
border-bottom: 1px solid var(--text)
|
||||||
|
word-break: break-all
|
||||||
color: var(--text-p1)
|
color: var(--text-p1)
|
||||||
--fsp: $fsp2
|
--fsp: $fsp2
|
||||||
&:hover
|
&:hover
|
||||||
|
|
|
@ -67,14 +67,13 @@
|
||||||
.l_right .widgets
|
.l_right .widgets
|
||||||
.widget-wrapper
|
.widget-wrapper
|
||||||
margin-top: 8px
|
margin-top: 8px
|
||||||
|
margin-bottom: 32px
|
||||||
.widget-header
|
.widget-header
|
||||||
padding-left: var(--gap-max)
|
padding-left: var(--gap-max)
|
||||||
padding-right: var(--gap-max)
|
padding-right: var(--gap-max)
|
||||||
&:not(.toc)
|
&:not(.toc)
|
||||||
margin-left: var(--gap-margin)
|
margin-left: var(--gap-margin)
|
||||||
margin-right: var(--gap-margin)
|
margin-right: var(--gap-margin)
|
||||||
.widget-wrapper+.widget-wrapper
|
|
||||||
margin-top: 32px
|
|
||||||
@media screen and (max-width: $device-laptop)
|
@media screen and (max-width: $device-laptop)
|
||||||
.widget-wrapper
|
.widget-wrapper
|
||||||
margin-top: var(--gap-margin)
|
margin-top: var(--gap-margin)
|
||||||
|
|
Loading…
Reference in New Issue