mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 08:00:06 +01:00
17 lines
539 B
HTML
17 lines
539 B
HTML
{{- $option := .Get 0 -}}
|
|
{{- $module := index (strings.Split $option ".") 0 -}}
|
|
|
|
{{/* some modules are nested under other modules */}}
|
|
{{- $submodule := index (strings.Split $option ".") 1 -}}
|
|
{{- if eq "helm" $submodule -}}
|
|
{{ $module = "helm"}}
|
|
{{- end -}}
|
|
|
|
{{/* should we use markdown instead of html? some envs strip raw html */}}
|
|
{{- $md := .Get 1 | default false -}}
|
|
|
|
{{- if $md -}}
|
|
[{{ $option }}](/modules/{{ $module }}/#{{ $option }})
|
|
{{- else -}}
|
|
<a href="/modules/{{ $module }}/#{{ $option }}">{{ $option }}</a>
|
|
{{- end -}}
|