Huxpro / huxpro.github.io

My Blog / Jekyll Themes / PWA
http://huangxuan.me
Apache License 2.0
7.01k stars 5.25k forks source link

文章生成目录的H1、H2级标题缩进不对 #455

Closed Kannmu closed 6 months ago

Kannmu commented 1 year ago

发现./css/hux-blog.min.css中,关于自动生成的侧边目录栏缩进参数格式有问题: 以二级标题为例,源文件中书写如下: side-catalog .catalog-body .h2_nav{margin: left 8px ;; font-size:13px;font-weight:650} 而正确的格式应该为: side-catalog .catalog-body .h2_nav{margin-left: 8px ; font-size:13px;font-weight:650} 出现了margin-left的传参格式错误,同时多了一个分号。 而后面的H3、4、5、6级标题未见错误。 修改后的H1、2级标题如下: side-catalog .catalog-body .h1_nav{margin-left: 0px;font-size:14px;font-weight:700}.side-catalog .catalog-body .h2_nav{margin-left: 8px;font-size:13px;font-weight:650}.

更新后生成的目录缩进正常了 tmp4963

shake commented 10 months ago

https://github.com/Kannmu/Kannmu.github.io/blob/master/css/hux-blog.min.css

测试一下,完全没问题。https://chenshake.com/2023/10/21/side-catalog-test/

ahan-ai commented 6 months ago

Got the same problem, can it be fixed?

Kannmu commented 6 months ago

Got the same problem, can it be fixed?

my solution is changing the code side-catalog .catalog-body .h2_nav{margin: left 8px ;; font-size:13px;font-weight:650} in file ./css/hux-blog.min.css into side-catalog .catalog-body .h2_nav{margin-left: 8px ; font-size:13px;font-weight:650}

ahan-ai commented 6 months ago

https://github.com/Kannmu/Kannmu.github.io/blob/master/css/hux-blog.min.css

this works, ths