Update api-reference shortcode

This commit is contained in:
Jihoon Seo 2022-04-21 10:02:26 +09:00
parent c1294b4c76
commit c6b6e5acb6
1 changed files with 1 additions and 1 deletions

View File

@ -4,4 +4,4 @@
{{ $textArg := .Get "text" }}
{{ $page := site.GetPage "page" (printf "%s/%s" $base $pageArg) }}
{{ $metadata := $page.Params.api_metadata }}
<a href="{{ $page.URL }}{{if $anchorArg}}#{{ $anchorArg }}{{end}}">{{if $textArg}}{{ $textArg }}{{else if $anchorArg}}{{ $anchorArg }}{{else}}{{ $metadata.kind }}{{end}}</a>
<a href="{{ $page.RelPermalink }}{{if $anchorArg}}#{{ $anchorArg }}{{end}}">{{if $textArg}}{{ $textArg }}{{else if $anchorArg}}{{ $anchorArg }}{{else}}{{ $metadata.kind }}{{end}}</a>