Skip to content

Commit 90173af

Browse files
Update single.html
1 parent 1507a34 commit 90173af

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

layouts/operate/single.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ <h1>
1414
{{ end }}
1515
{{ .Title }}</h1>
1616
{{ with .Params.description }}<p class="text-lg -mt-5 mb-10">{{ . | markdownify }}</p>{{ end }}
17-
{{ if .Params.categories }}
17+
{{ if .Params.categories }}
1818
<div class="post-categories" style="display: table;">
1919
<table style="border-collapse: separate; border-spacing: 0; background-color: #ffffff;">
2020
<thead>
2121
<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 -->
2322
{{ $total := len .Params.categories }} <!-- Store the total number of categories -->
2423
{{ range $index, $element := .Params.categories }}
2524
{{ if not (in (slice "docs" "operate" "integrate" "develop") .) }} <!-- Exclude specific categories -->
@@ -44,8 +43,8 @@ <h1>
4443
{{ $displayName = "Redis Insight" }}
4544
{{ $color = "#FD4439" }} <!-- Red bullet point for Redis Insight -->
4645
{{ 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;">&#8226;</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;">&#8226;</span> <!-- Even larger colored bullet point -->
4948
{{ $displayName }}
5049
</th>
5150
{{ end }}
@@ -62,9 +61,6 @@ <h1>
6261

6362

6463

65-
66-
67-
6864
<!-- In-page banner -->
6965
{{ if .Params.bannerText }}
7066
<!-- Banner params are in the current page's front matter -->

0 commit comments

Comments
 (0)