{{- $name := .Get 0 -}}
{{- $number := index (.Page.Store.Get "internal-ref") $name -}}

<a href="#internal-ref-{{ $name }}">
{{ .Inner }}
<span class="internal-ref-counter">{{ $number }}</span></a>
{{- /* chomp whitespace at the end */ -}}
