updt: <h2> rendering
This commit is contained in:
parent
28434af973
commit
6daffab512
@ -79,6 +79,11 @@ h1 {
|
||||
|
||||
h2 {
|
||||
font-size: 1.2em;
|
||||
margin-top: 3em;
|
||||
}
|
||||
|
||||
h2:first-of-type {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
h3 {
|
||||
@ -415,9 +420,8 @@ article header h1 a {
|
||||
.post h4 a,
|
||||
.post h5 a,
|
||||
.post h6 a {
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
left: -1.2rem;
|
||||
opacity: 1;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.post h1:hover a,
|
||||
|
@ -1,7 +1,8 @@
|
||||
<h{{ .Level }} id="{{ .Anchor | safeURL }}" {{ if .Attributes.style }}style="{{ .Attributes.style | safeCSS }}"{{ end }}>{{ .Text | safeHTML }}
|
||||
<span>
|
||||
<h{{ .Level }} id="{{ .Anchor | safeURL }}" {{ if .Attributes.style }}style="{{ .Attributes.style | safeCSS }}"{{ end }}>
|
||||
<div>
|
||||
<a href="#{{ .Anchor }}">
|
||||
<svg viewBox="0 0 28 23" height="100%" width="19" xmlns="http://www.w3.org/2000/svg"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" fill="none" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" fill="none" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2"/></svg>
|
||||
{{ range seq 2 .Level}}#{{end}}
|
||||
</a>
|
||||
</span>
|
||||
{{ .Text | safeHTML }}
|
||||
</div>
|
||||
</h{{ .Level }}>
|
Loading…
Reference in New Issue
Block a user