mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
11 lines
356 B
HTML
11 lines
356 B
HTML
|
|
{{- $option := .Get 0 -}}
|
||
|
|
{{- $module := index (strings.Split $option ".") 0 -}}
|
||
|
|
|
||
|
|
{{/* 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 -}}
|