fix:继续修正目录跳转锚点样式不正确的问题。
This commit is contained in:
parent
f250b86cf5
commit
58cddb3501
|
@ -154,10 +154,10 @@ mathjax:
|
|||
every_page: false
|
||||
plantuml:
|
||||
# Local or PlantUMLServer.
|
||||
render: "Local"
|
||||
render: "PlantUMLServer"
|
||||
|
||||
# the server,you can change your self-hosted sever for privacy
|
||||
# server: "http://www.plantuml.com/plantuml"
|
||||
server: "http://www.plantuml.com/plantuml"
|
||||
# "inline": <svg>xxx<svg/>
|
||||
# "inlineUrlEncode": <img src='data:image/svg+xml;>
|
||||
# "inlineBase64": <img src='data:image/svg+xml;base64>
|
||||
|
@ -166,7 +166,7 @@ plantuml:
|
|||
link: "inline"
|
||||
|
||||
GraphvizDotFile: "/usr/local/bin/dot"
|
||||
PlantJar: "/Users/midnite/Libs/plantuml/plantuml.jar"
|
||||
# PlantJar: "/Users/midnite/Libs/plantuml/plantuml.jar"
|
||||
|
||||
# common options: svg/png
|
||||
outputFormat: "svg"
|
||||
|
|
6
scripts/filter/header-renderer.js
Normal file
6
scripts/filter/header-renderer.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
hexo.extend.filter.register("marked:renderer", function(renderer) {
|
||||
const { config } = this;
|
||||
renderer.heading = function(text, level) {
|
||||
return `<h${level} id="${text}">${text}</h${level}>`;
|
||||
};
|
||||
});
|
|
@ -154,7 +154,9 @@ article {
|
|||
}
|
||||
h2, h3, h4, h5, h6 {
|
||||
&[id]:target {
|
||||
position: relative;
|
||||
padding-top: 92px;
|
||||
margin-top: -72px;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user