Skip to content
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
4643b17
Update single.html with categories
mich-elle-luna May 29, 2024
60bf2d2
Update single.html
mich-elle-luna May 29, 2024
ba92406
Update single.html
mich-elle-luna May 29, 2024
7a6492b
Update single.html
mich-elle-luna May 29, 2024
a222f57
Update single.html
mich-elle-luna May 29, 2024
5fdb8f5
Update single.html
mich-elle-luna May 29, 2024
e49ab47
Update single.html
mich-elle-luna May 29, 2024
ed3a2bd
Update single.html
mich-elle-luna May 29, 2024
4e51c17
Update single.html
mich-elle-luna May 29, 2024
49a7e69
Update single.html
mich-elle-luna May 29, 2024
714b3d5
Update single.html
mich-elle-luna May 30, 2024
c08a111
Update single.html
mich-elle-luna May 30, 2024
aeaf18c
Update single.html
mich-elle-luna May 30, 2024
d51140b
Update single.html
mich-elle-luna May 30, 2024
7f03c9c
Update single.html
mich-elle-luna May 30, 2024
3bc2591
Update single.html
mich-elle-luna Jun 6, 2024
78400b5
Update single.html
mich-elle-luna Jun 6, 2024
db512cb
Update single.html
mich-elle-luna Jun 6, 2024
ad62619
Update single.html
mich-elle-luna Jun 6, 2024
f062b90
Update single.html
mich-elle-luna Jun 6, 2024
1507a34
Update single.html
mich-elle-luna Jun 6, 2024
90173af
Update single.html
mich-elle-luna Jun 6, 2024
eb9c707
Update single.html
mich-elle-luna Jun 6, 2024
05c6521
Update single.html
mich-elle-luna Jun 6, 2024
bf7ba61
Update list.html
mich-elle-luna Jun 6, 2024
b6a262a
Update list.html
mich-elle-luna Jun 20, 2024
41830cf
Update single.html
mich-elle-luna Jun 20, 2024
8f580a0
Update _index.md
mich-elle-luna Jun 20, 2024
49033e4
Update _index.md
mich-elle-luna Jun 20, 2024
83e15be
Update single.html
mich-elle-luna Jun 20, 2024
532d9ff
Create _index.md
mich-elle-luna Jun 20, 2024
d8dd1b8
Update single.html
mich-elle-luna Jun 20, 2024
88a24c1
Delete content/categories/rs directory
mich-elle-luna Jun 20, 2024
6372a06
Update _index.md
mich-elle-luna Jan 22, 2025
dce320c
Update _index.md
mich-elle-luna Jan 22, 2025
f694d4f
Merge branch 'main' into categories
mich-elle-luna Jan 22, 2025
f5fd71b
Update _index.md
mich-elle-luna Jan 22, 2025
11395cb
Update _index.md
mich-elle-luna Jan 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ <h1>{{ .Title }}</h1>
</section>

</main>
{{ end }}
{{ end }}
47 changes: 46 additions & 1 deletion layouts/operate/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,52 @@ <h1>
</h1>

{{ with .Params.description }}<p class="text-lg -mt-5 mb-10">{{ . | markdownify }}</p>{{ end }}

{{ if .Params.categories }}
<div class="post-categories" style="display: table;">
<table style="border-collapse: separate; border-spacing: 0; background-color: #ffffff;">
<thead>
<tr>
{{ $visibleCategories := slice }}
{{ range .Params.categories }}
{{ if not (in (slice "docs" "operate" "integrate" "develop") .) }}
{{ $visibleCategories = $visibleCategories | append (slice .) }} <!-- Corrected Append -->
{{ end }}
{{ end }}
{{ range $index, $element := $visibleCategories }}
{{ $displayName := $element }}
{{ $color := "#ffffff" }} <!-- Default background color (white) -->
{{ if eq $element "rs" }}
{{ $displayName = "Redis Enterprise Software" }}
{{ $color = "#DCFF1E" }}
{{ else if eq $element "rc" }}
{{ $displayName = "Redis Cloud" }}
{{ $color = "#80DBFF" }}
{{ else if eq $element "kubernetes" }}
{{ $displayName = "Redis Enterprise for Kubernetes" }}
{{ $color = "#8A99A0" }}
{{ else if eq $element "oss" }}
{{ $displayName = "Redis Source Available" }}
{{ $color = "#C795E3" }}
{{ else if eq $element "stack" }}
{{ $displayName = "Redis Stack" }}
{{ $color = "#49859C" }}
{{ else if eq $element "redisinsight" }}
{{ $displayName = "Redis Insight" }}
{{ $color = "#FD4439" }}
{{ end }}
<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 }}">
{{ $displayName }}
</th>
{{ end }}
</tr>
</thead>
<tbody>
<!-- The tbody is intentionally left empty as all content is in the header -->
</tbody>
</table>
</div>
{{ end }}

<!-- In-page banner -->
{{ if .Params.bannerText }}
<!-- Banner params are in the current page's front matter -->
Expand Down
52 changes: 51 additions & 1 deletion layouts/operate/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,57 @@ <h1>
{{ end }}
{{ .Title }}</h1>
{{ with .Params.description }}<p class="text-lg -mt-5 mb-10">{{ . | markdownify }}</p>{{ end }}

{{ if .Params.categories }}
<div class="post-categories" style="display: table;">
<table style="border-collapse: separate; border-spacing: 0; background-color: #ffffff;">
<thead>
<tr>
{{ $visibleCategories := slice }}
{{ range .Params.categories }}
{{ if not (in (slice "docs" "operate" "integrate" "develop") .) }}
{{ $visibleCategories = $visibleCategories | append (slice .) }} <!-- Corrected Append -->
{{ end }}
{{ end }}
{{ range $index, $element := $visibleCategories }}
{{ $displayName := $element }}
{{ $color := "#ffffff" }} <!-- Default background color (white) -->
{{ if eq $element "rs" }}
{{ $displayName = "Redis Enterprise Software" }}
{{ $color = "#DCFF1E" }}
{{ else if eq $element "rc" }}
{{ $displayName = "Redis Cloud" }}
{{ $color = "#80DBFF" }}
{{ else if eq $element "kubernetes" }}
{{ $displayName = "Redis Enterprise for Kubernetes" }}
{{ $color = "#8A99A0" }}
{{ else if eq $element "oss" }}
{{ $displayName = "Redis Source Available" }}
{{ $color = "#C795E3" }}
{{ else if eq $element "stack" }}
{{ $displayName = "Redis Stack" }}
{{ $color = "#49859C" }}
{{ else if eq $element "redisinsight" }}
{{ $displayName = "Redis Insight" }}
{{ $color = "#FD4439" }}
{{ end }}
<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 }}">
{{ $displayName }}
</th>
{{ end }}
</tr>
</thead>
<tbody>
<!-- The tbody is intentionally left empty as all content is in the header -->
</tbody>
</table>
</div>
{{ end }}






<!-- In-page banner -->
{{ if .Params.bannerText }}
<!-- Banner params are in the current page's front matter -->
Expand Down