Back to Influxdb

Req

layouts/shortcodes/req.html

latest350 B
Original Source

{{- $text := .Get 0 | default "Required" -}} {{- $overrideText := .Get "text" | default $text -}} {{- $type := .Get "type" | default "text" -}} {{- $class := cond (le (len $overrideText) 2) "asterisk" "" -}} {{- $color := .Get "color" | default "" }} {{- if ne $type "key" -}}{{ $overrideText | markdownify }}{{ else }}* {{ $overrideText }}{{ end }}