Commit 9dfa389 1 parent 0ebfad0 commit 9dfa389 Copy full SHA for 9dfa389
File tree 1 file changed +11
-8
lines changed
1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 1
- {{ $pages := slice }}
1
+ {{ $pages := slice - }}
2
2
{{ range $key,$value := $.Site.Data.instrumentation -}}
3
3
{{ if eq $key "dotnet" -}}
4
4
{{ with $.Site.GetPage "/docs/languages/net/traces-api" -}}
5
- {{ $pages = $pages | append (dict "lang" $value "page" .) }}
5
+ {{ $pages = $pages | append (dict "lang" $value "page" .) - }}
6
6
{{ end }}
7
7
{{ with $.Site.GetPage "/docs/languages/net/metrics-api" -}}
8
- {{ $pages = $pages | append (dict "lang" $value "page" .) }}
8
+ {{ $pages = $pages | append (dict "lang" $value "page" .) - }}
9
9
{{ end }}
10
10
{{ else -}}
11
11
{{ with $.Site.GetPage (printf "/docs/languages/%s/api" $key) -}}
12
- {{ $pages = $pages | append (dict "lang" $value "page" .) }}
12
+ {{ $pages = $pages | append (dict "lang" $value "page" .) - }}
13
13
{{ end }}
14
14
{{ end -}}
15
15
{{ end -}}
16
16
17
17
{{ range $pages }}
18
18
{{ $title := replaceRE ` API reference ` "" .page.Title -}}
19
19
20
- - [
20
+ - {{/* Encode the link directly as an <a > anchor to avoid unnecessary render-link hook checks * / -}}
21
+ <a href="{{ .page.RelPermalink }}"
22
+ {{- if and .page.Params.redirect (hasPrefix .page.Params.redirect "http") }} {{/* * / -}}
23
+ target="_ blank" rel="noopener" class="external-link"
24
+ {{- end -}}
25
+ >
21
26
{{- .lang.name -}}
22
27
{{ with $title }} &mdash ; {{ . }} {{- end -}}
23
- ] (
24
- {{- .page.Permalink -}}
25
- )
28
+ </a >
26
29
27
30
{{- end -}}
You can’t perform that action at this time.
0 commit comments