mirror of
https://git.sr.ht/~ashkeel/strimertul-website
synced 2024-11-21 21:22:21 +00:00
add anchor links to api headers
This commit is contained in:
parent
8542bdcd3c
commit
a0be4496da
1 changed files with 7 additions and 2 deletions
|
@ -61,7 +61,9 @@
|
|||
<ul>
|
||||
{{ range $key, $spec := $keys }}
|
||||
<li>
|
||||
<a href="#{{ anchorize $key }}" class="monotitle">{{ $key }}</a>
|
||||
<a href="#{{ anchorize $key | safeURL }}" class="monotitle"
|
||||
>{{ $key }}</a
|
||||
>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
@ -70,9 +72,12 @@
|
|||
<section class="copy">{{ .Content }}</section>
|
||||
<section class="reference">
|
||||
{{ range $key, $spec := $keys }}
|
||||
<article class="api" id="{{ anchorize $key }}">
|
||||
<article class="api" id="{{ anchorize $key | safeURL }}">
|
||||
<header>
|
||||
<h3>
|
||||
<a href="#{{ anchorize $key | safeURL }}" class="heading-anchor"
|
||||
>#</a
|
||||
>
|
||||
<span class="monotitle">{{ $key }}</span> {{ range .tags }}
|
||||
<span class="tag {{ . }}">{{ . }}</span>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue