Enable the section header link icon

This commit is contained in:
BBaoVanC 2021-10-10 15:14:36 -05:00
parent ff79ae29b5
commit b923054bd3
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
2 changed files with 7 additions and 6 deletions

View File

@ -49,20 +49,23 @@
color: inherit; color: inherit;
} }
/* this took too much work but doesn't quite fit the theme
.section-header { .section-header {
position: relative; position: relative;
} }
.section-header a { .section-header a:hover {
text-decoration: none; text-decoration: none;
} }
.section-header-link { .section-header-link {
position: absolute; position: absolute;
left: -30px; left: -20px;
}
.section-header-link svg {
width: 15px;
height: 15px;
} }
*/

View File

@ -1,9 +1,7 @@
<h{{ .Level }} id="{{ .Anchor | safeURL }}" class="section-header"> <h{{ .Level }} id="{{ .Anchor | safeURL }}" class="section-header">
<a href="#{{ .Anchor | safeURL }}"> <a href="#{{ .Anchor | safeURL }}">
{{/* this took too much work but doesn't quite fit the theme
<span class="section-header-link"> <span class="section-header-link">
{{ partial "icon.html" "link" }} {{ partial "icon.html" "link" }}
*/}}
</span> </span>
{{ .Text | safeHTML }} {{ .Text | safeHTML }}
</a> </a>