mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-10-31 18:30:43 +00:00
chore: slightly rework headline anchor (#277)
This commit is contained in:
parent
c1f15c2162
commit
6a827d20f9
@ -3,13 +3,13 @@
|
||||
|
||||
<!-- prettier-ignore-start -->
|
||||
{{- if $showAnchor -}}
|
||||
<div class="gblog-post__anchorwrap flex align-center">
|
||||
<div class="gblog-post__anchorwrap">
|
||||
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
|
||||
{{ .Text | safeHTML }}
|
||||
</h{{ .Level }}>
|
||||
<a data-clipboard-text="{{ .Page.Permalink }}#{{ .Anchor | safeURL }}" class="gblog-post__anchor clip flex align-center" aria-label="Anchor {{ .Text | safeHTML }}" href="#{{ .Anchor | safeURL }}">
|
||||
<svg class="gblog-icon gblog_link"><use xlink:href="#gblog_link"></use></svg>
|
||||
</a>
|
||||
</h{{ .Level }}>
|
||||
</div>
|
||||
{{- else -}}
|
||||
<div class="gblog-post__anchorwrap">
|
||||
|
@ -111,7 +111,9 @@ h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-weight: 600;
|
||||
font-weight: $body-font-weight;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
h4,
|
||||
|
Loading…
Reference in New Issue
Block a user