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