Skip to content

Commit

Permalink
Add specific handling for kctrl go imports
Browse files Browse the repository at this point in the history
  • Loading branch information
100mik committed Feb 26, 2025
1 parent 02df333 commit cb2a855
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion site/themes/carvel/layouts/partials/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,9 @@
{{ if .Params.packages }}
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<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/master{/dir} {{.Params.repo}}/blob/master{/dir}/{file}#L{line}" />
<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 cb2a855

Please sign in to comment.