From 9f57a4be1fecc23270c2ab06e9777b2af9e18599 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Mon, 12 May 2025 14:08:29 -0600 Subject: [PATCH] hotfix: fix influxdb3 cta links --- content/influxdb3/cloud-dedicated/_index.md | 2 +- content/influxdb3/clustered/_index.md | 2 +- layouts/shortcodes/cta-link.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content/influxdb3/cloud-dedicated/_index.md b/content/influxdb3/cloud-dedicated/_index.md index ed4a060a4..e8bfb23f6 100644 --- a/content/influxdb3/cloud-dedicated/_index.md +++ b/content/influxdb3/cloud-dedicated/_index.md @@ -18,7 +18,7 @@ The InfluxDB time series platform is designed to handle high write and query loa Learn how to use and leverage InfluxDB Cloud Dedicated for your specific time series use case. -Run an {{% product-name %}} proof of concept (PoC) +Run an {{% product-name %}} proof of concept (PoC) Get started with InfluxDB Cloud Dedicated ## InfluxDB 3 diff --git a/content/influxdb3/clustered/_index.md b/content/influxdb3/clustered/_index.md index dc7d7d656..64079c17a 100644 --- a/content/influxdb3/clustered/_index.md +++ b/content/influxdb3/clustered/_index.md @@ -18,7 +18,7 @@ The InfluxDB time series platform is designed to handle high write and query loa Learn how to use and leverage InfluxDB Clustered for your specific time series use case. -Run an {{% product-name %}} proof of concept (PoC) +Run an {{% product-name %}} proof of concept (PoC) Get started with InfluxDB Clustered ## InfluxDB 3 diff --git a/layouts/shortcodes/cta-link.html b/layouts/shortcodes/cta-link.html index 014ddda4d..36ed08dd2 100644 --- a/layouts/shortcodes/cta-link.html +++ b/layouts/shortcodes/cta-link.html @@ -2,6 +2,6 @@ {{- $product := index $productPathData 0 -}} {{- $version := index $productPathData 1 -}} {{- $isInfluxDBOSS := and (eq $product "influxdb") (gt (len (findRE `^v[0-9]` $version)) 0)}} -{{- $productKey := cond (and (eq $product "influxdb") (not $isInfluxDBOSS)) (print "influxdb_" (replaceRE "-" "_" $version)) $product -}} +{{- $productKey := cond (and (in $product "influxdb") (not $isInfluxDBOSS)) (print $product "_" (replaceRE "-" "_" $version)) $product -}} {{- $productData := index $.Site.Data.products $productKey -}} {{ $productData.link }} \ No newline at end of file