mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 02:14:21 +00:00
fix: don't show address in Contact if it's slice of empty strings
An alternative is to comment out the `address` in Params if it's unused.
This commit is contained in:
1 parent
2192b11d04
commit
d486867326
1 file changed
+1
-1
@@ -64,7 +64,7 @@
|
||||
{{ end }}
|
||||
|
||||
{{ $addr_formatted := "" }}{{/* Scoping for maps. */}}
|
||||
{{ if $data.address }}
|
||||
{{ if $data.address.street | or $data.address.city | or $data.address.region | or $data.address.postcode | or $data.address.country }}
|
||||
{{ $addr := slice }}
|
||||
{{with $data.address.street}}{{$addr = $addr | append .}}{{end}}
|
||||
{{with $data.address.city}}{{$addr = $addr | append .}}{{end}}
|
||||
|
||||
Reference in new issue
Block a user