File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
{{ $gh_repo := .Site.Params.gitHubRepo }}
2
- {{ $gh_file := .File }}
2
+ {{ $gh_path := .File.Dir }}
3
+ {{ $gh_file := .File.LogicalName }}
3
4
{{ $gh_branch := "main" }}
4
5
{{ $parts := split .RelPermalink "/" }}
5
6
{{ if eq (index $parts 1) "staging" }}
9
10
{{ $gh_branch := "main" }}
10
11
{{ end }}
11
12
12
- {{ $path := replaceRE `(_index.md)$|(index.md)$|(.md)$` "" $gh_file }}
13
+ {{ $stripped_filename := replaceRE `(_index.md)$|(index.md)$|(.md)$` "" $gh_file | lower }}
13
14
14
- {{ $editURL := printf "%s/edit/%s/content/%s" $gh_repo $gh_branch $gh_file }}
15
- {{ $issuesURL := printf "%s/issues/new?title=Feedback: %s&body=Page https://redis.io/docs/latest/%s" $gh_repo (safeURL $.Title ) $path }}
15
+ {{ $editURL := printf "%s/edit/%s/content/%s%s " $gh_repo $gh_branch $gh_path $gh_file }}
16
+ {{ $issuesURL := printf "%s/issues/new?title=Feedback: %s&body=Page https://redis.io/docs/latest/%s%s " $gh_repo (safeURL $.Title ) $gh_path $stripped_filename }}
16
17
17
18
< nav class ="flex flex-col gap-3 pb-3 w-52 text-redis-pencil-600 border-b border-b-redis-pen-700 border-opacity-50 ">
18
19
< a {{ printf "href=%q " $editURL | safeHTMLAttr }} target="_blank" class="group inline-flex items-center gap-1 hover:text-redis-pen-400 mt-auto self-start">
You can’t perform that action at this time.
0 commit comments