Skip to content

Commit

Permalink
Add specific handling for kctrl go imports
Browse files Browse the repository at this point in the history
Signed-off-by: Soumik Majumder <soumikm@vmware.com>
  • Loading branch information
100mik committed Feb 26, 2025
1 parent 245dcba commit 31f25ab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions site/themes/carvel/layouts/partials/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@

{{ if .Params.packages }}
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
{{ $params := .Params }}
{{ range $package := .Params.packages }}
<meta name="go-import" content="{{ $package }} git {{ $params.repo }}" />
<meta name="go-source" content="{{ $package }} {{ $params.repo }} {{ $params.repo }}/tree/master{/dir} {{$params.repo}}/blob/master{/dir}/{file}#L{line}" />
<meta name="go-import" content="{{ index .Params.packages 0 }} git {{ .Params.repo }}" />
<meta name="go-source" content="{{ index .Params.packages 0 }} {{ .Params.repo }} {{ .Params.repo }}/tree/develop{/dir} {{.Params.repo}}/blob/develop{/dir}/{file}#L{line}" />
{{ if eq .Params.title "kapp-controller"}}
<meta name="go-import" content="{{ index .Params.packages 1 }} git {{ .Params.repo }}/cli" />
<meta name="go-source" content="{{ index .Params.packages 1 }} {{ .Params.repo }}/cli {{ .Params.repo }}/tree/develop/cli{/dir} {{.Params.repo}}/blob/develop/cli{/dir}/{file}#L{line}" />
{{ end }}
{{ end }}

0 comments on commit 31f25ab

Please sign in to comment.