File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 14
14
{{ end }}
15
15
{{ .Title }}</ h1 >
16
16
{{ with .Params.description }}< p class ="text-lg -mt-5 mb-10 "> {{ . | markdownify }}</ p > {{ end }}
17
- {{ if .Params.categories }}
17
+ {{ if .Params.categories }}
18
18
< div class ="post-categories " style ="display: table; ">
19
19
< table style ="border-collapse: separate; border-spacing: 0; background-color: #ffffff; ">
20
20
< thead >
21
21
< tr >
22
- < th style ="border: 1px solid #ccc; padding: 8px; text-align: left; font-weight: normal; white-space: nowrap; border-top-left-radius: 10px; border-bottom-left-radius: 10px; "> Applies to:</ th > <!-- Rounded corners for the first cell -->
23
22
{{ $total := len .Params.categories }} <!-- Store the total number of categories -->
24
23
{{ range $index, $element := .Params.categories }}
25
24
{{ if not (in (slice "docs" "operate" "integrate" "develop") .) }} <!-- Exclude specific categories -->
44
43
{{ $displayName = "Redis Insight" }}
45
44
{{ $color = "#FD4439" }} <!-- Red bullet point for Redis Insight -->
46
45
{{ end }}
47
- < th style ="border: 1px solid #ccc; padding: 8px; text-align: left; font-weight: normal; {{ if eq $index (sub $total 1) }}border-top-right-radius: 10px; border-bottom-right-radius: 10px;{{ end }} ">
48
- < span style ="color: {{ $color }}; font-size: 20px ; "> •</ span > <!-- Larger colored bullet point -->
46
+ < th style ="border: 1px solid #ccc; padding: 8px; text-align: left; font-weight: normal; {{ if eq $index 0 }}border-top-left-radius: 10px; border-bottom-left-radius: 10px;{{ else if eq $index (sub $total 1) }}border-top-right-radius: 10px; border-bottom-right-radius: 10px;{{ end }} ">
47
+ < span style ="color: {{ $color }}; font-size: 30px ; "> •</ span > <!-- Even larger colored bullet point -->
49
48
{{ $displayName }}
50
49
</ th >
51
50
{{ end }}
62
61
63
62
64
63
65
-
66
-
67
-
68
64
<!-- In-page banner -->
69
65
{{ if .Params.bannerText }}
70
66
<!-- Banner params are in the current page's front matter -->
You can’t perform that action at this time.
0 commit comments