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>
|
<ul>
|
||||||
{{ range $key, $spec := $keys }}
|
{{ range $key, $spec := $keys }}
|
||||||
<li>
|
<li>
|
||||||
<a href="#{{ anchorize $key }}" class="monotitle">{{ $key }}</a>
|
<a href="#{{ anchorize $key | safeURL }}" class="monotitle"
|
||||||
|
>{{ $key }}</a
|
||||||
|
>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -70,9 +72,12 @@
|
||||||
<section class="copy">{{ .Content }}</section>
|
<section class="copy">{{ .Content }}</section>
|
||||||
<section class="reference">
|
<section class="reference">
|
||||||
{{ range $key, $spec := $keys }}
|
{{ range $key, $spec := $keys }}
|
||||||
<article class="api" id="{{ anchorize $key }}">
|
<article class="api" id="{{ anchorize $key | safeURL }}">
|
||||||
<header>
|
<header>
|
||||||
<h3>
|
<h3>
|
||||||
|
<a href="#{{ anchorize $key | safeURL }}" class="heading-anchor"
|
||||||
|
>#</a
|
||||||
|
>
|
||||||
<span class="monotitle">{{ $key }}</span> {{ range .tags }}
|
<span class="monotitle">{{ $key }}</span> {{ range .tags }}
|
||||||
<span class="tag {{ . }}">{{ . }}</span>
|
<span class="tag {{ . }}">{{ . }}</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue