mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 13:25:57 -06:00
Add header link icon but commented out because it looks weird
This commit is contained in:
parent
c233b8122f
commit
ff79ae29b5
@ -49,6 +49,21 @@
|
|||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* this took too much work but doesn't quite fit the theme
|
||||||
|
.section-header {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-header a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-header-link {
|
||||||
|
position: absolute;
|
||||||
|
left: -30px;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Content formatting */
|
/* Content formatting */
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
<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">
|
||||||
|
{{ partial "icon.html" "link" }}
|
||||||
|
*/}}
|
||||||
|
</span>
|
||||||
{{ .Text | safeHTML }}
|
{{ .Text | safeHTML }}
|
||||||
</a>
|
</a>
|
||||||
</h{{ .Level }}>
|
</h{{ .Level }}>
|
||||||
|
Loading…
Reference in New Issue
Block a user