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 9
9
</ label >
10
10
</ div >
11
11
12
- {{ $relPermalink := .RelPermalink | strings.TrimPrefix "/" | strings.TrimSuffix "/" }}
12
+ {{ $relPermalink := .RelPermalink }}
13
13
{{ $currentProductTitle := "" }}
14
14
15
15
{{ with index .Site.Data "product-selector" }}
16
16
{{ range $group := . }}
17
17
{{ range $product := $group.products }}
18
18
{{ 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 }}
21
22
{{ $currentProductTitle = $product.title }}
22
23
{{ end }}
23
24
{{ end }}
You can’t perform that action at this time.
0 commit comments