Skip to content

Commit da80299

Browse files
nginx-jackTasoOneAsia
authored andcommitted
ProductSelector: Show selected product
1 parent a10d773 commit da80299

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
- productGroup: Test Product
2+
products:
3+
- title: "Test Product"
4+
url: "/test-product"
5+
6+
- productGroup: NGINX
7+
products:
8+
- title: "NGINX"
9+
url: "/nginx"

layouts/partials/sidebar-v2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{{ with index .Site.Data "product-selector" }}
4545
{{ $groups := . }}
4646
{{ range $group := $groups }}
47-
<h3 class="product-selector__product-group">{{ upper (replace $group.productGroup "-" " ") }}</h3>
47+
<h3 class="product-selector__product-group">{{ $group.productGroup }}</h3>
4848
<ul>
4949
{{ $products := sort $group.products "productOrder" }}
5050
{{ range $product := $products }}

0 commit comments

Comments
 (0)