diff --git a/hack/templates/README.md.gotmpl b/hack/templates/README.md.gotmpl index 28ca2f584..9b58b0018 100644 --- a/hack/templates/README.md.gotmpl +++ b/hack/templates/README.md.gotmpl @@ -112,7 +112,7 @@ Autogenerated from chart metadata using [helm-docs](https://github.com/norwoodj/ {{- end -}} {{ template "chart.header" . }} -{{ template "custom.chart.icon" . -}} +{{ template "custom.chart.icon" . }} {{ template "chart.versionBadge" . }} {{ template "chart.typeBadge" . }} diff --git a/hack/templates/icon.gotmpl b/hack/templates/icon.gotmpl index 28d09de47..d51c604d4 100644 --- a/hack/templates/icon.gotmpl +++ b/hack/templates/icon.gotmpl @@ -1,7 +1,5 @@ {{- define "custom.chart.icon" -}} -{{- $icon := "$ICON" -}} -{{- if $icon -}} - {{ template - -{{ end -}} + {{- with "$ICON" -}} + {{ template + {{- end -}} {{- end -}}