Move the header link icon to the end

This commit is contained in:
BBaoVanC 2021-10-10 17:47:45 -05:00
parent 0207e441eb
commit 1b59b258bc
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
2 changed files with 1 additions and 14 deletions

View File

@ -49,19 +49,6 @@
color: inherit;
}
.section-header {
position: relative;
}
.section-header a:hover {
text-decoration: none;
}
.section-header-link {
position: absolute;
left: -20px;
}
.section-header-link svg {
width: 15px;
height: 15px;

View File

@ -1,8 +1,8 @@
<h{{ .Level }} id="{{ .Anchor | safeURL }}" class="section-header">
{{ .Text | safeHTML }}
<a href="#{{ .Anchor | safeURL }}">
<span class="section-header-link">
{{ partial "icon.html" "link" }}
</span>
{{ .Text | safeHTML }}
</a>
</h{{ .Level }}>