Added showFlags parameter

This commit is contained in:
Gabriel Jean 2022-06-13 14:12:11 +00:00 committed by GitHub
parent 9e5b1426e3
commit 5940a4ea5e
4 changed files with 24 additions and 15 deletions

View file

@ -20,5 +20,10 @@
{{ end }}
{{ end }}
{{/* if specified via "params.showFlags" field, then countryCode is set to be empty. */}}
{{ if eq site.Params.showFlags false }}
{{ $countryCode = "" }}
{{ end }}
{{/* return the country code */}}
{{ return $countryCode }}