File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
themes/opentermsarchive/layouts/shortcodes Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 12
12
< div class ="config-option-default "> < span > Default:</ span > {{ .Get "default" | markdownify}}</ div >
13
13
{{ end }}
14
14
{{ if .Get "example" }}
15
- < div class ="config-option-example "> < span > Example:</ span > < code > {{ .Get "example" | markdownify }}</ code > </ div >
15
+ < div class ="config-option-example "> < span > Example:</ span >
16
+ {{ $example := .Get "example" }}
17
+ {{ if not (strings.Contains $example "\n") }}
18
+ < code > {{ $example | markdownify }}</ code >
19
+ {{ else }}
20
+ {{ $example | markdownify }}
21
+ {{ end }}
22
+ </ div >
16
23
{{ end }}
17
24
{{ if .Get "allowedValues" }}
18
25
< div class ="config-option-allowed-values "> < span > Allowed values:</ span > {{ .Get "allowedValues" | markdownify }}</ div >
You can’t perform that action at this time.
0 commit comments