Skip to content

Commit

Permalink
using different conditional statement for matching page section
Browse files Browse the repository at this point in the history
  • Loading branch information
DerLev committed Apr 23, 2024
1 parent 1739b1e commit 6af48b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homepage/layouts/_default/_markup/render-heading.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h{{ .Level }} id="{{ .Anchor }}">
{{- if .Page.InSection "blog" }}
{{- if eq .Page.Section "blog" }}
<copy-section-link url="{{ .Page.Permalink }}#{{ .Anchor }}"></copy-section-link>
{{- end }}
{{- .Text | safeHTML -}}
Expand Down

0 comments on commit 6af48b1

Please sign in to comment.