|
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 | 22 | {{ $visibleCategories := slice }}
|
23 | 23 | {{ range .Params.categories }}
|
24 | 24 | {{ if not (in (slice "docs" "operate" "integrate" "develop") .) }}
|
25 |
| - {{ $visibleCategories = append $visibleCategories . }} |
| 25 | + {{ $visibleCategories = $visibleCategories | append (slice .) }} <!-- Corrected Append --> |
26 | 26 | {{ end }}
|
27 | 27 | {{ end }}
|
28 | 28 | {{ range $index, $element := $visibleCategories }}
|
29 | 29 | {{ $displayName := $element }}
|
30 | 30 | {{ $color := "#ffffff" }} <!-- Default background color (white) -->
|
31 | 31 | {{ if eq $element "rs" }}
|
32 | 32 | {{ $displayName = "Redis Enterprise Software" }}
|
33 |
| - {{ $color = "#DCFF1E" }} <!-- Yellow background for Redis Enterprise Software --> |
| 33 | + {{ $color = "#DCFF1E" }} |
34 | 34 | {{ else if eq $element "rc" }}
|
35 | 35 | {{ $displayName = "Redis Cloud" }}
|
36 |
| - {{ $color = "#80DBFF" }} <!-- Blue background for Redis Cloud --> |
| 36 | + {{ $color = "#80DBFF" }} |
37 | 37 | {{ else if eq $element "kubernetes" }}
|
38 | 38 | {{ $displayName = "Redis Enterprise for Kubernetes" }}
|
39 |
| - {{ $color = "#8A99A0" }} <!-- Light grey background for Kubernetes --> |
| 39 | + {{ $color = "#8A99A0" }} |
40 | 40 | {{ else if eq $element "oss" }}
|
41 | 41 | {{ $displayName = "Redis Source Available" }}
|
42 |
| - {{ $color = "#C795E3" }} <!-- Purple background for Redis Source Available --> |
| 42 | + {{ $color = "#C795E3" }} |
43 | 43 | {{ else if eq $element "stack" }}
|
44 | 44 | {{ $displayName = "Redis Stack" }}
|
45 |
| - {{ $color = "#49859C" }} <!-- Medium blue background for Redis Stack --> |
| 45 | + {{ $color = "#49859C" }} |
46 | 46 | {{ else if eq $element "redisinsight" }}
|
47 | 47 | {{ $displayName = "Redis Insight" }}
|
48 |
| - {{ $color = "#FD4439" }} <!-- Red background for Redis Insight --> |
| 48 | + {{ $color = "#FD4439" }} |
49 | 49 | {{ end }}
|
50 | 50 | <th style="border: 1px solid #ccc; padding: 8px; text-align: left; font-weight: normal; background-color: {{ $color }}; {{ if eq $index 0 }}border-top-left-radius: 10px; border-bottom-left-radius: 10px;{{ end }}{{ if eq $index (sub (len $visibleCategories) 1) }}border-top-right-radius: 10px; border-bottom-right-radius: 10px;{{ end }}">
|
51 | 51 | {{ $displayName }}
|
|
64 | 64 |
|
65 | 65 |
|
66 | 66 |
|
| 67 | + |
67 | 68 | <!-- In-page banner -->
|
68 | 69 | {{ if .Params.bannerText }}
|
69 | 70 | <!-- Banner params are in the current page's front matter -->
|
|
0 commit comments