Skip to content

Commit a9815dc

Browse files
committed
formatting
Signed-off-by: HIMANSHU RAI <himanshuuu.2001@gmail.com>
1 parent 4bee6fd commit a9815dc

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

assets/scss/_elements_project.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ div.tip {
153153

154154
.heading-link {
155155
position: relative;
156-
display: inline-flex;
156+
display: flex;
157157
align-items: center;
158158
gap: 0.3rem;
159159

layouts/_default/_markup/render-heading.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
{{- $text := .Text | safeHTML -}}
33
{{- $anchor := .Anchor | safeURL -}}
44

5-
<h{{ $level }} id="{{ $anchor }}" class="heading-link">
6-
{{ $text }}
7-
<a class="heading-anchor" href="#{{ $anchor }}" aria-label="Anchor link to this section">
8-
🔗
9-
</a>
5+
{{ $level := .Level }}
6+
<h{{ $level }} id="{{ .Anchor | safeURL }}" class="heading-link">
7+
{{ .Text }}
8+
<a href="#{{ .Anchor | safeURL }}" class="heading-anchor" aria-label="Permalink to this heading">🔗</a>
109
</h{{ $level }}>

0 commit comments

Comments
 (0)