Skip to content

Commit

Permalink
Enable the section header link icon
Browse files Browse the repository at this point in the history
  • Loading branch information
BBaoVanC committed Oct 10, 2021
1 parent ff79ae2 commit b923054
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 7 additions & 4 deletions assets/css/bobastyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,23 @@
color: inherit;
}

/* this took too much work but doesn't quite fit the theme
.section-header {
position: relative;
}

.section-header a {
.section-header a:hover {
text-decoration: none;
}

.section-header-link {
position: absolute;
left: -30px;
left: -20px;
}

.section-header-link svg {
width: 15px;
height: 15px;
}
*/



Expand Down
2 changes: 0 additions & 2 deletions layouts/_default/_markup/render-heading.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<h{{ .Level }} id="{{ .Anchor | safeURL }}" class="section-header">
<a href="#{{ .Anchor | safeURL }}">
{{/* this took too much work but doesn't quite fit the theme
<span class="section-header-link">
{{ partial "icon.html" "link" }}
*/}}
</span>
{{ .Text | safeHTML }}
</a>
Expand Down

0 comments on commit b923054

Please sign in to comment.