File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 33 - title : " Test Product"
44 url : " /test-product"
55
6+ - productGroup : Test External Links
7+ products :
8+ - title : " NGINX.org"
9+ url : https://nginx.org/index.html
10+ extUrl : true
11+
612- productGroup : NGINX
713 products :
814 - title : " NGINX"
Original file line number Diff line number Diff line change @@ -51,7 +51,15 @@ <h3 class="product-selector__product-group">{{ $group.productGroup }}</h3>
5151 < ul >
5252 {{ $products := sort $group.products "productOrder" }}
5353 {{ range $product := $products }}
54- < li class ="product-selector__product "> < a href ="{{ $product.url }} "> {{ $product.title }}</ a > </ li >
54+ < li class ="product-selector__product ">
55+ < a
56+ href ="{{ $product.url }} "
57+ aria-label ="{{ $product.title }} documentation "
58+ {{ if $product.extUrl }} target ="_blank " {{ end }}
59+ >
60+ {{ $product.title }}
61+ </ a >
62+ </ li >
5563 {{ end }}
5664 </ ul >
5765 {{ end }}
You can’t perform that action at this time.
0 commit comments