{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.awsServices }} {{ range $key, $value := $taxonomy}} {{ if or (not (reflect.IsSlice (.Params.awsServices))) (eq (len .Params.awsServices) 1)}} {{ $.Scratch.Set "serviceName" .Params.awsServices}} {{ if reflect.IsSlice (.Params.awsServices) }} {{ $.Scratch.Set "serviceName" (index .Params.awsServices 0) }} {{ end }} {{$.Scratch.Set "serviceDict" (merge ($.Scratch.Get "serviceDict") (dict $taxonomyname ($.Scratch.Get "serviceName")))}} {{ end }} {{ end }} {{ end }} {{ range $taxonomyname, $taxonomy := .Site.Taxonomies.awsServices }} {{ end }}
Backup & Restore Pilot Light Warm Standby Active-Active
{{ if not (index ($.Scratch.Get "serviceDict") $taxonomyname) }} {{ $taxonomyname}} {{ else }} {{ $.Scratch.Set "serviceName" (index ($.Scratch.Get "serviceDict") $taxonomyname)}} {{ $.Scratch.Get "serviceName" }} {{ end}} {{ range $key, $value := $taxonomy}} {{ $tags := .Params.tags }} {{ if and (isset .Params "tags") (in $tags "Backup & Restore") }} {{ .Params.menuTitle }} {{ end }} {{ end }} {{ range $key, $value := $taxonomy}} {{ $tags := .Params.tags }} {{ if and (isset .Params "tags") (in $tags "Pilot Light") }} {{ .Params.menuTitle }} {{ end }} {{ end }} {{ range $key, $value := $taxonomy}} {{ $tags := .Params.tags }} {{ if and (isset .Params "tags") (in $tags "Warm Standby") }} {{ .Params.menuTitle }} {{ end }} {{ end }} {{ range $key, $value := $taxonomy}} {{ $tags := .Params.tags }} {{ if and (isset .Params "tags") (in $tags "Active-Active") }} {{ .Params.menuTitle }} {{ end }} {{ end }}