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 3
3
- title : " Test Product"
4
4
url : " /test-product"
5
5
6
+ - productGroup : Test External Links
7
+ products :
8
+ - title : " NGINX.org"
9
+ url : https://nginx.org/index.html
10
+ extUrl : true
11
+
6
12
- productGroup : NGINX
7
13
products :
8
14
- 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>
51
51
< ul >
52
52
{{ $products := sort $group.products "productOrder" }}
53
53
{{ 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 >
55
63
{{ end }}
56
64
</ ul >
57
65
{{ end }}
You can’t perform that action at this time.
0 commit comments