Skip to content

Commit

Permalink
Update single.html
Browse files Browse the repository at this point in the history
  • Loading branch information
mich-elle-luna authored May 29, 2024
1 parent 7a6492b commit a222f57
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions layouts/operate/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,34 @@ <h1>
<h3>This content is applicable to the following:</h3>
<table>
{{ range .Params.categories }}
{{ if not (in (slice "docs" "operate" "integrate" "develop") .) }} <!-- Check if the category should be excluded -->
<tr>
{{ $displayName := . }} <!-- Default display name is the category name -->
{{ if eq . "rs" }} <!-- Check if the category is 'rs' -->
{{ $displayName = "Redis Enterprise Software" }} <!-- Change display name -->
{{ end }}
<td><a href="{{ "categories/" | relLangURL }}{{ . | urlize }}">{{ $displayName }}</a></td>
<td>{{ $displayName }}</td>
</tr>
<tr>
{{ $displayName := . }} <!-- Default display name is the category name -->
{{ if eq . "rc" }} <!-- Check if the category is 'rc' -->
{{ $displayName = "Redis Cloud" }} <!-- Change display name -->
{{ end }}
<td><a href="{{ "categories/" | relLangURL }}{{ . | urlize }}">{{ $displayName }}</a></td>
<td>{{ $displayName }}</td>
</tr>
<tr>
{{ $displayName := . }} <!-- Default display name is the category name -->
{{ if eq . "kubernetes" }} <!-- Check if the category is 'kubernetes' -->
{{ $displayName = "Redis Enterprise for Kubernetes" }} <!-- Change display name -->
{{ end }}
<td><a href="{{ "categories/" | relLangURL }}{{ . | urlize }}">{{ $displayName }}</a></td>
<td>{{ $displayName }}</td>
</tr>
<tr>
{{ $displayName := . }} <!-- Default display name is the category name -->
{{ if eq . "oss" }} <!-- Check if the category is 'oss' -->
{{ $displayName = "Redis Source Available" }} <!-- Change display name -->
{{ end }}
<td><a href="{{ "categories/" | relLangURL }}{{ . | urlize }}">{{ $displayName }}</a></td>
<td>{{ $displayName }}</td>
</tr>
{{ end }}
</table>
Expand Down

0 comments on commit a222f57

Please sign in to comment.