diff --git a/assets/css/_common/outline/sidebar/sidebar-toc.scss b/assets/css/_common/outline/sidebar/sidebar-toc.scss index c8e373f..29eba64 100644 --- a/assets/css/_common/outline/sidebar/sidebar-toc.scss +++ b/assets/css/_common/outline/sidebar/sidebar-toc.scss @@ -1,26 +1,57 @@ - .post-toc { font-size: $font-size-small; padding: 0 8px; - + ul { + list-style: none; margin: 0; padding: 0 2px 5px 10px; text-align: left; counter-reset: item; - > li { - padding-left: 0; + >li { + + + > ul { + border-left: 1px solid; + margin-left: 6px; + + li { + position: relative; + padding-left: 0; + + &:before { + position: absolute; + content: ' '; + top: 0.14em; + left: -0.75em; + width: 0.68em; + height: 0.815em; + border-style: none none dashed none; + border-width: 0.05em; + } + } + } + + } + + a { transition: all $transition-ease; + border: none; &:before { - content: counters(item, ".") ". "; + content: counters(item, ".") ". "; counter-increment: item; } + + &:hover { + text-decoration: underline; + color: $orange; + } } } @@ -39,24 +70,24 @@ display: if($toc_expand_all, block, none); } - .active > .nav-child { + .active>.nav-child { display: block; } - .active-current > .nav-child { + .active-current>.nav-child { display: block; - > .nav-item { + >.nav-item { display: block; } } - .active > a { + .active>a { border-bottom-color: $sidebar-highlight; color: $sidebar-highlight; } - .active-current > a { + .active-current>a { color: $sidebar-highlight; &:hover { @@ -64,4 +95,4 @@ } } } -} +} \ No newline at end of file diff --git a/assets/css/_schemes/Gemini/index.scss b/assets/css/_schemes/Gemini/index.scss index 845e620..b3f3c9e 100644 --- a/assets/css/_schemes/Gemini/index.scss +++ b/assets/css/_schemes/Gemini/index.scss @@ -70,7 +70,7 @@ border-bottom: 1px solid $body-bg-color; } - h3 { + h3, h4 { border-bottom: 1px dotted $body-bg-color; } } diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 76a79a3..c6b9d5b 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -61,6 +61,12 @@ markup: noHl: false style: monokai tabWidth: 2 + tableOfContents: + # 开始/结束标题级别:1-6 (建议从2开始) + # Heading title level of start or end: 1-6 + # Recommand start at 2 + startLevel: 2 + endLevel: 4 # 站点文章导航文件 # Site map of all articles diff --git a/exampleSite/content/post/table-of-content.md b/exampleSite/content/post/table-of-content.md index ee9637d..e31b6d0 100644 --- a/exampleSite/content/post/table-of-content.md +++ b/exampleSite/content/post/table-of-content.md @@ -47,6 +47,10 @@ url: post/table-of-content.html 因为战斗力相较悬殊,所以游击队只能是靠打一枪换一个地方的办法,专找敌人薄弱的地方攻击,但更多时候,都是在防御和转移阵地。 +### 迎来解放 + +1949年12月,国民党云南省主席卢汉在昆明宣布起义,云南正式拉开解放的序幕。1950年2月20日,陈赓、宋任穷、周保中率解放军第二野战军第四兵团进入昆明,24日,陈赓宣布云南全境解放。 + ## 生活的断层 ### 跌入生活底层 @@ -57,4 +61,10 @@ url: post/table-of-content.html ### 岁月像一条河 -2015年,是褚时健和马静芬结婚60周年,被称为“钻石婚”的纪念年份。这简直是一份人生的奖赏,在中国离婚率愈益升高的当下,60年的婚姻,几乎就像一个前世之梦。一个甲子的相伴相随,褚时健和马静芬共同经历了国家和个人的各种风浪,共同面对过生死。他们两人已经不仅是夫妻,更是一对战友。尽管马静芬偶尔会对褚时健年轻时候的粗心抱怨上两句,但说到最后,她会说一句:“没有我就没有他,没有他也就没有我。” \ No newline at end of file +2015年,是褚时健和马静芬结婚60周年,被称为“钻石婚”的纪念年份。这简直是一份人生的奖赏,在中国离婚率愈益升高的当下,60年的婚姻,几乎就像一个前世之梦。一个甲子的相伴相随,褚时健和马静芬共同经历了国家和个人的各种风浪,共同面对过生死。他们两人已经不仅是夫妻,更是一对战友。尽管马静芬偶尔会对褚时健年轻时候的粗心抱怨上两句,但说到最后,她会说一句:“没有我就没有他,没有他也就没有我。” + +## 作者致谢 + +这本书从2014年初夏开始采访,到今天完稿,历时18个月。封面上“作者”只能是我一个人的名字,但也只有我自己知道,这本书,包含了太多人的心力和体力。我当然首先要致谢王石先生,没有他就没有这本书。我自己细想下来,没有王石先生一直的鞭策和鼓励,也没有我写作工作的今天。从2006年我开始从事专业写作工作以来,他给我创造了很多写作的机会,并且不吝自己诸多人生和学习的体会和感悟,一一传递予我。知遇之恩,感谢非常。 + +最后,我当然要把最大的感谢致予褚时健先生。不仅是因为他慷慨、坦率面对我的各种提问,更重要的是,在倾听他的故事的过程里,他繁盛的人生经历,他的强大生命力,他对生活、对事业的一片赤子之心,也丰富了我对自己人生的思考。 \ No newline at end of file