diff options
Diffstat (limited to 'templates/content.html')
-rw-r--r-- | templates/content.html | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/templates/content.html b/templates/content.html index 4616a10..9b6d508 100644 --- a/templates/content.html +++ b/templates/content.html @@ -4,11 +4,15 @@ {{- inc .Title -}} <summary> {{- with .Title -}} - {{- if $l := lanchor -}} - <h{{depth}}>{{.}}<a class="sec-link" id="/{{$l}}" href="#/{{$l}}">¶</a> - {{- if $s := sanchor}}{{if ne $s $l}}<a id="#{{$s}}"></a>{{end}}{{end -}} - </h{{depth}}> - {{- end -}} + <h{{depth}}>{{.}} + {{- if $l := lanchor -}} + <a class="sec-link" id="/{{$l}}" href="#/{{$l}}">¶</a> + {{- if $s := sanchor}}{{if ne $s $l}}<a id="#{{$s}}"></a>{{end}}{{end -}} + <a id="${{ianchor}}"></a> + {{- else -}} + <a class="sec-link" id="${{ianchor}}" href="#${{ianchor}}">¶</a> + {{- end -}} + </h{{depth}}> {{- end -}} </summary> {{- range .Children -}} |