{{- $referenceApiVersion := .Params.api_metadata.apiVersion -}} {{- $referenceApiType := .Params.api_metadata.kind -}} {{- $allInboundConceptPages := partialCached "docs/api-reference-hyperlink-map.gotemplate" (.Site.GetPage "section" "docs/concepts" ) -}} {{- $thisPageInboundConceptPages := slice -}} {{- range $index, $page := $allInboundConceptPages -}} {{- $matched := false -}} {{- range $page.Params.api_metadata -}} {{- if (and (eq .apiVersion $referenceApiVersion) (eq .kind $referenceApiType )) -}} {{- $thisPageInboundConceptPages = $thisPageInboundConceptPages | append $page -}} {{- end -}} {{- end -}} {{- end -}} {{- $pageUrl := slice -}}
{{- if gt (len $thisPageInboundConceptPages) 0 -}}
{{ T "api_reference_page_related_concepts" (dict "count" (len $thisPageInboundConceptPages) "title" .Title) }}
{{- end -}}