Skip to content

Commit

Permalink
📝 (docs): Clean up icon template
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Apr 16, 2023
1 parent 29133a9 commit 3c19539
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion hack/templates/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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" . }}
Expand Down
8 changes: 3 additions & 5 deletions hack/templates/icon.gotmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{{- define "custom.chart.icon" -}}
{{- $icon := "$ICON" -}}
{{- if $icon -}}
<img src="{{ $icon }}" align="right" width="92" alt="{{ template "chart.name" . }} logo">

{{ end -}}
{{- with "$ICON" -}}
<img src="{{ . }}" align="right" width="92" alt="{{ template "chart.name" $ }} logo">
{{- end -}}
{{- end -}}

0 comments on commit 3c19539

Please sign in to comment.