Skip to content

Commit

Permalink
only showing copy link button when page is a blog article
Browse files Browse the repository at this point in the history
  • Loading branch information
DerLev committed Apr 23, 2024
1 parent 047b9d2 commit 1739b1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homepage/layouts/_default/_markup/render-heading.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<h{{ .Level }} id="{{ .Anchor }}">
{{- if .Page.InSection "blog" }}
<copy-section-link url="{{ .Page.Permalink }}#{{ .Anchor }}"></copy-section-link>
{{- end }}
{{- .Text | safeHTML -}}
</h{{ .Level }}>

0 comments on commit 1739b1e

Please sign in to comment.