github.com/square/finch@v0.0.0-20240412205204-6530c03e2b96/docs/themes/hugo-geekdoc/layouts/_default/_markup/render-heading.html (about) 1 {{- $showAnchor := (and (default true .Page.Params.GeekdocAnchor) (default true .Page.Site.Params.GeekdocAnchor)) -}} 2 3 4 <!-- prettier-ignore-start --> 5 {{- if $showAnchor -}} 6 <div class="gdoc-page__anchorwrap"> 7 <h{{ .Level }} id="{{ .Anchor | safeURL }}" {{- with .Attributes.class }} 8 class="{{ . }}" 9 {{- end }} 10 > 11 {{ .Text | safeHTML }} 12 <a data-clipboard-text="{{ .Page.Permalink }}#{{ .Anchor | safeURL }}" class="gdoc-page__anchor clip flex align-center" title="{{ i18n "title_anchor_prefix" }} {{ .Text | safeHTML }}" aria-label="{{ i18n "title_anchor_prefix" }} {{ .Text | safeHTML }}" href="#{{ .Anchor | safeURL }}"> 13 <svg class="gdoc-icon gdoc_link"><use xlink:href="#gdoc_link"></use></svg> 14 </a> 15 </h{{ .Level }}> 16 </div> 17 {{- else -}} 18 <div class="gdoc-page__anchorwrap"> 19 <h{{ .Level }} id="{{ .Anchor | safeURL }}" {{- with .Attributes.class }} 20 class="{{ . }}" 21 {{- end }} 22 > 23 {{ .Text | safeHTML }} 24 </h{{ .Level }}> 25 </div> 26 {{- end -}} 27 <!-- prettier-ignore-end -->