Correct value output of the JSON

This commit is contained in:
2023-11-28 11:46:23 +00:00
parent 6c6664917f
commit 7e13a8321f

View File

@@ -2,6 +2,6 @@
{"memberships": [
{{- with $.Site.Data.memberships.membership_levels }}
{{- range $index, $element := . -}}
{ "name": "{{ .name }}", "value": "{{ .value }}", "currency": "{{ .currency }}", "billing_interval": "{{ default "monthly" .billing_interval }}", "link": "{{ .link }}", "description": "{{ .description}}"}{{ if ne (add $index 1) $len }},{{ end }}
{ "name": "{{ .name }}", "value": {{ .value }}, "currency": "{{ .currency }}", "billing_interval": "{{ default "monthly" .billing_interval }}", "link": "{{ .link }}", "description": "{{ .description}}"}{{ if ne (add $index 1) $len }},{{ end }}
{{- end }}
{{- end }}]}