File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
{{ $featureName := .Get "feature_name" }}
2
+ {{ $text := .Get "text" }}
2
3
{{ $feature := index site.Data.summary $featureName }}
3
4
{{ if not $feature }}
4
5
{{ errorf "[summary-bar] invalid feature: %s %v" $featureName .Position }}
47
48
{{ with $feature.availability }}
48
49
{{ $availabilityText := . }}
49
50
< div class ="flex flex-wrap gap-1 {{ $availabilityText|lower }} ">
51
+ {{ range $key, $icon := $availabilityIcons }}
52
+ {{ if in $availabilityText $key }}
53
+ < span class ="icon-svg "> {{ partial "icon" $icon }}</ span >
54
+ {{ end }}
55
+ {{ end }}
50
56
< span class ="font-bold "> Availability:</ span >
51
57
< span >
52
- {{ $availabilityText }}
53
- {{ range $key, $icon := $availabilityIcons }}
54
- {{ if in $availabilityText $key }}
55
- < span class ="icon-svg "> {{ partial "icon" $icon }}</ span >
56
- {{ end }}
57
- {{ end }}
58
+ {{ $availabilityText }}.
58
59
</ span >
60
+ < div > < span class =""> {{ $text | markdownify }}</ span > </ div >
59
61
</ div >
60
62
{{ end }}
61
63
You can’t perform that action at this time.
0 commit comments