We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
api-reference
1 parent 558f36c commit 787e703Copy full SHA for 787e703
layouts/shortcodes/api-reference.html
@@ -0,0 +1,7 @@
1
+{{ $base := "docs/reference/kubernetes-api" }}
2
+{{ $pageArg := .Get "page" }}
3
+{{ $anchorArg := .Get "anchor" }}
4
+{{ $textArg := .Get "text" }}
5
+{{ $page := site.GetPage "page" (printf "%s/%s" $base $pageArg) }}
6
+{{ $metadata := $page.Params.api_metadata }}
7
+<a href="{{ $page.URL }}{{if $anchorArg}}#{{ $anchorArg }}{{end}}">{{if $textArg}}{{ $textArg }}{{else if $anchorArg}}{{ $anchorArg }}{{else}}{{ $metadata.kind }}{{end}}</a>
0 commit comments