Inconsistent range execution

that one Base, but it does not apply to yours (as far as I researched)

regarding go-mod update:

old hextra was 0.9.7 with old layout structure of 0.145
new would be 11+ with new layout structure and some other changes and it won’t build

you have a lot of stuff in your cache that’s magically taken over, so it’s a good idea to clean that up and do fresh clones maybe add cacheDir to localize …

reverted to hextra 0.9.7:

toc-subheading definition.

you define a template in a partial but not as inline => this results in your defined one is not found at the first build.

These lines print only BEFORE

          {{ range $k, $v := . }}
            {{ warnf "BEFORE toc_subheading %4d %-30s : %s" math.Counter templates.Current.Name page.Page }}
            {{/* partial "inline/toc-subheading" (dict "info" $v "level" 0 "title" $k) */}}
            {{ template "toc-subheading" (dict "info" $v "level" 0 "title" $k) }}
          {{ end }}
...
{{- /* define "partials/inline/toc-subheading" */ -}}
{{- define "toc-subheading" -}}
  {{ warnf "IN TOC SUBHEADING  %4d %-30s : %s" math.Counter templates.Current.Name page.Page }}

if you change the commented call and definition to inline , “IN TOC” is also printed but fails due to the content of the variables. → guess you will have to fix up some code here

if you change the loop inside toc-subheading to that one you will get some output to the sidebar

 		{{ range . }}
        		<li><a class="margin-left-1rem" href="#oops"> {{ . }}</a></li>
	     	{{ end }}