chore: slightly rework headline anchor (#277)

This commit is contained in:
Robert Kaussow 2022-07-11 14:50:45 +02:00 committed by GitHub
parent c1f15c2162
commit 6a827d20f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -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">

View File

@ -111,7 +111,9 @@ h3,
h4,
h5,
h6 {
font-weight: 600;
font-weight: $body-font-weight;
display: flex;
align-items: center;
}
h4,