diff --git a/content/v2.0/cloud/get-started.md b/content/v2.0/cloud/get-started.md new file mode 100644 index 000000000..80fa24989 --- /dev/null +++ b/content/v2.0/cloud/get-started.md @@ -0,0 +1,12 @@ +--- +title: Get started with InfluxCloud 2.0 Beta +description: > + Setup an InfluxDB instance on InfluxCloud and use Telegraf to write data from + a remote endpoint into a bucket. +weight: 1 +menu: + v2_0_cloud: + name: Get started with InfluxCloud +--- + +_This is just placeholder content_ diff --git a/data/products.yml b/data/products.yml index 14c393cc8..2f5a164dd 100644 --- a/data/products.yml +++ b/data/products.yml @@ -4,4 +4,5 @@ enterprise: cloud: name: "InfluxCloud 2.0 Beta" + shortname: "InfluxCloud" link: "https://www.influxdata.com/influxcloud2beta/" diff --git a/layouts/partials/header.html b/layouts/partials/header.html index db0403110..7f065be91 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -5,10 +5,14 @@ {{ partial "header/google-analytics.html" }} + {{ if in .RelPermalink "/cloud/"}} + {{ if .Params.seotitle }} {{ print .Params.seotitle " | " }} {{ else if .Title }} {{ print .Title " | " }}{{ end }}{{ .Site.Data.products.cloud.name }} Documentation + {{ else }} + {{ if .Params.seotitle }} {{ print .Params.seotitle " | " }} {{ else if .Title }} {{ print .Title " | " }} {{ end }}InfluxDB {{ if $currentVersion }}{{print $currentVersion " " }}{{ end }}Documentation + {{ end }} - {{ if .Params.seotitle }} {{ print .Params.seotitle " | " }} {{ else if .Title }} {{ print .Title " | " }} {{ end }}InfluxDB {{ if $currentVersion }}{{print $currentVersion " " }}{{ end }}Documentation {{ partial "header/canonical.html" . }} {{ partial "header/stylesheets.html" }} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 6b5aa1025..6698219db 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -99,6 +99,83 @@ {{end}} + + {{ $refMenuID := print (replaceRE "[.]" "_" $currentVersion) "_cloud" }} +

{{ .Site.Data.products.cloud.shortname }}

+ + {{ range (index .Site.Menus $refMenuID) }} + + + {{end}} + {{ $refMenuID := print (replaceRE "[.]" "_" $currentVersion) "_ref" }}

Reference

diff --git a/layouts/shortcodes/cloud-name.html b/layouts/shortcodes/cloud-name.html index 74cfd22e2..b653614c0 100644 --- a/layouts/shortcodes/cloud-name.html +++ b/layouts/shortcodes/cloud-name.html @@ -1 +1,7 @@ -{{ .Site.Data.products.cloud.name }} +{{ $length := .Get 0 | default "long" }} + +{{ if eq $length "long" }} + {{ .Site.Data.products.cloud.name }} +{{ else if eq $length "short" }} + {{ .Site.Data.products.cloud.shortname }} +{{ end }}