2023-05-05 18:52:41 +00:00
|
|
|
{{- $productPathData := findRE "[^/]+.*?" .Page.RelPermalink -}}
|
|
|
|
{{- $currentCloud := index $productPathData 1 -}}
|
|
|
|
{{- $length := .Get 0 | default "long" -}}
|
|
|
|
{{- $scratch := newScratch -}}
|
|
|
|
{{- if eq $currentCloud "cloud" -}}
|
|
|
|
{{- $scratch.Set "cloudData" .Site.Data.products.influxdb_cloud -}}
|
|
|
|
{{- else if eq $currentCloud "cloud-serverless" -}}
|
|
|
|
{{- $scratch.Set "cloudData" .Site.Data.products.influxdb_cloud_serverless -}}
|
|
|
|
{{- else if eq $currentCloud "cloud-dedicated" -}}
|
|
|
|
{{- $scratch.Set "cloudData" .Site.Data.products.influxdb_cloud_dedicated -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- $cloudData := $scratch.Get "cloudData" -}}
|
2019-03-26 22:31:01 +00:00
|
|
|
{{- if eq $length "long" }}
|
2023-05-05 18:52:41 +00:00
|
|
|
{{- $cloudData.name -}}
|
2019-03-13 22:09:53 +00:00
|
|
|
{{ else if eq $length "short" }}
|
2023-05-05 18:52:41 +00:00
|
|
|
{{- $cloudData.altname -}}
|
2019-03-26 22:31:01 +00:00
|
|
|
{{ end -}}
|