hotfix: fix shared page github edit link
parent
5122847981
commit
4f7e4d5992
|
@ -14,7 +14,7 @@
|
|||
{{ if .Page.HasShortcode "duplicate-oss" }}
|
||||
{{ .Scratch.Set "pageGithubLink" (replaceRE "/cloud/" "/v2/" (.Scratch.Get "pageGithubLink")) }}
|
||||
{{ else if .Params.Source }}
|
||||
{{ .Scratch.Set "pageGithubLink" (print "https://github.com/influxdata/docs-v2/edit/master" .Params.source) }}
|
||||
{{ .Scratch.Set "pageGithubLink" (print "https://github.com/influxdata/docs-v2/edit/master/content" .Params.source) }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ .Scratch.Set "pageGithubLink" (print "https://github.com/influxdata/docs-v2/edit/master/content/") }}
|
||||
|
|
Loading…
Reference in New Issue