File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 99 </ label >
1010 </ div >
1111
12- {{ $relPermalink := .RelPermalink | strings.TrimPrefix "/" | strings.TrimSuffix "/" }}
12+ {{ $relPermalink := .RelPermalink }}
1313 {{ $currentProductTitle := "" }}
1414
1515 {{ with index .Site.Data "product-selector" }}
1616 {{ range $group := . }}
1717 {{ range $product := $group.products }}
1818 {{ if not $product.extUrl }}
19- {{ $productUrl := $product.url | strings.TrimPrefix "/" | strings.TrimSuffix "/" }}
20- {{ if eq $productUrl $relPermalink }}
19+ {{ warnf "$relPermalink: %s" $relPermalink }}
20+ {{ warnf "$product.url: %s" $product.url }}
21+ {{ if strings.Contains $relPermalink $product.url }}
2122 {{ $currentProductTitle = $product.title }}
2223 {{ end }}
2324 {{ end }}
You can’t perform that action at this time.
0 commit comments