Merge branch 'master' into feat-oss-2.7.12-release
commit
fae826f6ef
|
@ -1,56 +0,0 @@
|
|||
---
|
||||
title: Revoke a database token
|
||||
description: >
|
||||
Use the [`influxctl token revoke` command](/influxdb3/clustered/reference/cli/influxctl/token/revoke/)
|
||||
to revoke a token from your InfluxDB cluster and disable all
|
||||
permissions associated with the token.
|
||||
Provide the ID of the token you want to revoke.
|
||||
menu:
|
||||
influxdb3_clustered:
|
||||
parent: Database tokens
|
||||
weight: 203
|
||||
list_code_example: |
|
||||
```sh
|
||||
influxctl token revoke <TOKEN_ID>
|
||||
```
|
||||
aliases:
|
||||
- /influxdb3/clustered/admin/tokens/delete/
|
||||
- /influxdb3/clustered/admin/tokens/database/delete/
|
||||
---
|
||||
|
||||
Use the [`influxctl token revoke` command](/influxdb3/clustered/reference/cli/influxctl/token/revoke/)
|
||||
to revoke a database token from your {{< product-name omit=" Clustered" >}} cluster and disable
|
||||
all permissions associated with the token.
|
||||
|
||||
1. If you haven't already, [download and install the `influxctl` CLI](/influxdb3/clustered/reference/cli/influxctl/#download-and-install-influxctl).
|
||||
2. Run the [`influxctl token list` command](/influxdb3/clustered/reference/cli/influxctl/token/list)
|
||||
to output tokens with their IDs.
|
||||
Copy the **token ID** of the token you want to delete.
|
||||
|
||||
```sh
|
||||
influxctl token list
|
||||
```
|
||||
|
||||
3. Run the `influxctl token revoke` command and provide the following:
|
||||
|
||||
- Token ID to revoke
|
||||
|
||||
4. Confirm that you want to revoke the token.
|
||||
|
||||
{{% code-placeholders "TOKEN_ID" %}}
|
||||
```sh
|
||||
influxctl token revoke TOKEN_ID
|
||||
```
|
||||
{{% /code-placeholders %}}
|
||||
|
||||
> [!Warning]
|
||||
> #### Revoking a token is immediate and cannot be undone
|
||||
>
|
||||
> Revoking a database token is a destructive action that takes place immediately
|
||||
> and cannot be undone.
|
||||
>
|
||||
> #### Rotate revoked tokens
|
||||
>
|
||||
> After revoking a database token, any clients using the revoked token need to
|
||||
> be updated with a new database token to continue to interact with your
|
||||
> {{% product-name omit=" Clustered" %}} cluster.
|
|
@ -19,7 +19,7 @@ aliases:
|
|||
---
|
||||
|
||||
Use the [`influxctl token revoke` command](/influxdb3/clustered/reference/cli/influxctl/token/revoke/)
|
||||
to revoke a database token from your InfluxDB cluster and disable
|
||||
to revoke a database token from your {{< product-name omit=" Clustered" >}} cluster and disable
|
||||
all permissions associated with the token.
|
||||
|
||||
1. If you haven't already, [download and install the `influxctl` CLI](/influxdb3/clustered/reference/cli/influxctl/#download-and-install-influxctl).
|
||||
|
|
|
@ -16,7 +16,7 @@ list_code_example: |
|
|||
```
|
||||
#### HTTP API
|
||||
```bash
|
||||
curl -X POST "http://{{< influxdb/host >}}/api/v3/enterprise/configure/token/admin" \
|
||||
curl -X POST "http://{{< influxdb/host >}}/api/v3/configure/token/admin" \
|
||||
--header 'Accept: application/json' \
|
||||
--header 'Content-Type: application/json'
|
||||
```
|
||||
|
|
|
@ -35,7 +35,6 @@ across sessions, assign the token string to the `INFLUXDB3_AUTH_TOKEN` environme
|
|||
{{% tab-content %}}
|
||||
Use the following endpoint to create an admin token:
|
||||
|
||||
{{% show-in "core" %}}
|
||||
{{% api-endpoint method="POST" endpoint="/api/v3/configure/token/admin" api-ref="/influxdb3/version/api/v3/#operation/PostCreateAdminToken" %}}
|
||||
|
||||
```bash
|
||||
|
@ -43,15 +42,5 @@ curl -X POST "http://{{< influxdb/host >}}/api/v3/configure/token/admin" \
|
|||
--header 'Accept: application/json' \
|
||||
--header 'Content-Type: application/json'
|
||||
```
|
||||
{{% /show-in %}}
|
||||
{{% show-in "enterprise" %}}
|
||||
{{% api-endpoint method="POST" endpoint="/api/v3/enterprise/configure/token/admin" api-ref="/influxdb3/version/api/v3/#operation/PostCreateAdminToken" %}}
|
||||
|
||||
```bash
|
||||
curl -X POST "http://{{< influxdb/host >}}/api/v3/{{< product-key >}}/configure/token/admin" \
|
||||
--header 'Accept: application/json' \
|
||||
--header 'Content-Type: application/json'
|
||||
```
|
||||
{{% /show-in %}}
|
||||
{{% /tab-content %}}
|
||||
{{< /tabs-wrapper >}}
|
||||
|
|
|
@ -56,36 +56,18 @@ The output contains the new token string and InfluxDB deactivates the previous t
|
|||
<!----------------------------BEGIN HTTP API----------------------------------->
|
||||
Use the following HTTP API endpoint:
|
||||
|
||||
{{% show-in "core" %}}
|
||||
{{% api-endpoint method="POST" endpoint="/api/v3/configure/token/admin/regenerate" api-ref="/influxdb3/version/api/v3/configure/token/admin/regenerate" %}}
|
||||
{{% /show-in %}}
|
||||
|
||||
{{% show-in "enterprise" %}}
|
||||
{{% api-endpoint method="POST" endpoint="/api/v3/enterprise/configure/token/admin/regenerate" api-ref="/influxdb3/version/api/v3/enterprise/configure/token/admin" %}}
|
||||
{{% /show-in %}}
|
||||
|
||||
In your request, send an `Authorization` header with your current admin token string
|
||||
--for example:
|
||||
|
||||
{{% show-in "core" %}}
|
||||
{{% code-placeholders "ADMIN_TOKEN" %}}
|
||||
```bash
|
||||
curl -X POST "http://{{< influxdb/host >}}/api/v3/configure/token/admin" \
|
||||
curl -X POST "http://{{< influxdb/host >}}/api/v3/configure/token/admin/regenerate" \
|
||||
--header "Authorization: Bearer ADMIN_TOKEN" \
|
||||
--header "Accept: application/json"
|
||||
```
|
||||
{{% /code-placeholders %}}
|
||||
{{% /show-in %}}
|
||||
|
||||
{{% show-in "enterprise" %}}
|
||||
{{% code-placeholders "ADMIN_TOKEN" %}}
|
||||
```bash
|
||||
curl -X POST "http://{{< influxdb/host >}}/api/v3/enterprise/configure/token/admin" \
|
||||
--header "Authorization: Bearer ADMIN_TOKEN" \
|
||||
--header "Accept: application/json"
|
||||
```
|
||||
{{% /code-placeholders %}}
|
||||
{{% /show-in %}}
|
||||
|
||||
In your command, replace {{% code-placeholder-key %}}`ADMIN_TOKEN`{{% /code-placeholder-key %}} with the current token string.
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ influxdb3_core:
|
|||
versions: [core]
|
||||
list_order: 2
|
||||
latest: core
|
||||
latest_patch: 3.0.1
|
||||
latest_patch: 3.0.3
|
||||
placeholder_host: localhost:8181
|
||||
ai_sample_questions:
|
||||
- How do I install and run InfluxDB 3 Core?
|
||||
|
@ -21,7 +21,7 @@ influxdb3_enterprise:
|
|||
versions: [enterprise]
|
||||
list_order: 2
|
||||
latest: enterprise
|
||||
latest_patch: 3.0.1
|
||||
latest_patch: 3.0.3
|
||||
placeholder_host: localhost:8181
|
||||
ai_sample_questions:
|
||||
- How do I install and run InfluxDB 3 Enterprise?
|
||||
|
|
|
@ -8,49 +8,49 @@
|
|||
{{- if $index -}},{{- end }}
|
||||
{
|
||||
"name": {{ .Name | jsonify }},
|
||||
"url": {{ absURL (cond (isset .Params "url") .Params.url .URL) | jsonify }},
|
||||
"url": {{ absURL (default .URL .Params.url) | jsonify }},
|
||||
"children": [
|
||||
{{- range $index, $entry := .Children -}}
|
||||
{{- if $index -}},{{- end }}
|
||||
{
|
||||
"name": {{ .Name | jsonify }},
|
||||
"url": {{ absURL (cond (isset .Params "url") .Params.url .URL) | jsonify }},
|
||||
"url": {{ absURL (default .URL .Params.url) | jsonify }},
|
||||
"children": [
|
||||
{{- range $index, $entry := .Children -}}
|
||||
{{- if $index -}},{{- end }}
|
||||
{
|
||||
"name": {{ .Name | jsonify }},
|
||||
"url": {{ absURL (cond (isset .Params "url") .Params.url .URL) | jsonify }},
|
||||
"url": {{ absURL (default .URL .Params.url) | jsonify }},
|
||||
"children": [
|
||||
{{- range $index, $entry := .Children -}}
|
||||
{{- if $index -}},{{- end }}
|
||||
{
|
||||
"name": {{ .Name | jsonify }},
|
||||
"url": {{ absURL (cond (isset .Params "url") .Params.url .URL) | jsonify }},
|
||||
"url": {{ absURL (default .URL .Params.url) | jsonify }},
|
||||
"children": [
|
||||
{{- range $index, $entry := .Children -}}
|
||||
{{- if $index -}},{{- end }}
|
||||
{
|
||||
"name": {{ .Name | jsonify }},
|
||||
"url": {{ absURL (cond (isset .Params "url") .Params.url .URL) | jsonify }},
|
||||
"url": {{ absURL (default .URL .Params.url) | jsonify }},
|
||||
"children": [
|
||||
{{- range $index, $entry := .Children -}}
|
||||
{{- if $index -}},{{- end }}
|
||||
{
|
||||
"name": {{ .Name | jsonify }},
|
||||
"url": {{ absURL (cond (isset .Params "url") .Params.url .URL) | jsonify }},
|
||||
"url": {{ absURL (default .URL .Params.url) | jsonify }},
|
||||
"children": [
|
||||
{{- range $index, $entry := .Children -}}
|
||||
{{- if $index -}},{{- end }}
|
||||
{
|
||||
"name": {{ .Name | jsonify }},
|
||||
"url": {{ absURL (cond (isset .Params "url") .Params.url .URL) | jsonify }},
|
||||
"url": {{ absURL (default .URL .Params.url) | jsonify }},
|
||||
"children": [
|
||||
{{- range $index, $entry := .Children -}}
|
||||
{{- if $index -}},{{- end }}
|
||||
{
|
||||
"name": {{ .Name | jsonify }},
|
||||
"url": {{ absURL (cond (isset .Params "url") .Params.url .URL) | jsonify }},
|
||||
"url": {{ absURL (default .URL .Params.url) | jsonify }},
|
||||
"children": [
|
||||
{{ range .Children }}
|
||||
{{ end }}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</div>
|
||||
{{ else if eq .Kind "section" }}
|
||||
<div class="important block">
|
||||
{{ $packageTitle := cond (isset .Params "list_title") $.Params.list_title .Title }}
|
||||
{{ $packageTitle := default .Title .Params.list_title }}
|
||||
{{ $packageName := replaceRE `^(.*)( package)` "<code>$1</code>$2" $packageTitle }}
|
||||
<p>
|
||||
The {{ $packageName | safeHTML }} is a user-contributed package
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
</div>
|
||||
{{ else if eq .Kind "section" }}
|
||||
<div class="important block">
|
||||
{{ $packageTitle := cond (isset .Params "list_title") $.Params.list_title .Title }}
|
||||
{{ $packageTitle := default .Title .Params.list_title }}
|
||||
{{ $packageName := replaceRE `^(.*)( package)` "<code>$1</code>$2" $packageTitle }}
|
||||
<p>
|
||||
The {{ $packageName | safeHTML }} is experimental and <a href="{{ $expRiskURL }}">subject to change at any time</a>.
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
{{ $product := index $productPathData 0 }}
|
||||
{{ $version := index $productPathData 1 }}
|
||||
{{ $tagSet := print $product "/" $version "/tags" }}
|
||||
{{ if isset .Params $tagSet }}
|
||||
{{ with .Param $tagSet }}
|
||||
<div class="tags">
|
||||
{{ range .Param $tagSet }}
|
||||
{{ range . }}
|
||||
{{ $name := . }}
|
||||
{{ with $.Site.GetPage (printf "/%s/%s" $tagSet ($name | urlize)) }}
|
||||
<a class="tag btn" href="{{ .RelPermalink }}">{{ $name }}</a>
|
||||
|
|
|
@ -35,10 +35,10 @@
|
|||
{{ else if eq $currentVersion nil}}
|
||||
{{ $scratch.Set "siteTitle" (print (index .Site.Data.products $product).name " Documentation") }}
|
||||
{{ else }}
|
||||
{{ if (isset (index .Site.Data.products $product) "altname" ) }}
|
||||
{{ $scratch.Set "siteTitle" (print (index .Site.Data.products $product).altname " Documentation") }}
|
||||
{{ with (index .Site.Data.products $product).altname }}
|
||||
{{ $scratch.Set "siteTitle" (print . " Documentation") }}
|
||||
{{ else }}
|
||||
{{ $scratch.Set "siteTitle" (print (index .Site.Data.products $product).name " Documentation") }}
|
||||
{{ $scratch.Set "siteTitle" (print (index $.Site.Data.products $product).name " Documentation") }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
|
|
@ -4,37 +4,37 @@
|
|||
{{ range $menu }}
|
||||
<li class="nav-category {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
||||
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
||||
<a href='{{ cond (isset .Params "url") .Params.url .URL }}'>{{ .Name }}</a>
|
||||
<a href='{{ default .URL .Params.url }}'>{{ .Name }}</a>
|
||||
{{ if .HasChildren }}
|
||||
<ul class="children {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}">
|
||||
{{ range .Children }}
|
||||
<li class="nav-item {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
||||
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
||||
<a href='{{ cond (isset .Params "url") .Params.url .URL }}'>{{ .Name }}</a>
|
||||
<a href='{{ default .URL .Params.url }}'>{{ .Name }}</a>
|
||||
{{ if .HasChildren }}
|
||||
<ul class="children {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}">
|
||||
{{ range .Children }}
|
||||
<li class="nav-item {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
||||
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
||||
<a href='{{ cond (isset .Params "url") .Params.url .URL }}'>{{ .Name }}</a>
|
||||
<a href='{{ default .URL .Params.url }}'>{{ .Name }}</a>
|
||||
{{ if .HasChildren }}
|
||||
<ul class="children {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}">
|
||||
{{ range .Children }}
|
||||
<li class="nav-item {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
||||
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
||||
<a href='{{ cond (isset .Params "url") .Params.url .URL }}'>{{ .Name }}</a>
|
||||
<a href='{{ default .URL .Params.url }}'>{{ .Name }}</a>
|
||||
{{ if .HasChildren }}
|
||||
<ul class="children {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}">
|
||||
{{ range .Children }}
|
||||
<li class="nav-item {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
||||
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
||||
<a href='{{ cond (isset .Params "url") .Params.url .URL }}'>{{ .Name }}</a>
|
||||
<a href='{{ default .URL .Params.url }}'>{{ .Name }}</a>
|
||||
{{ if .HasChildren }}
|
||||
<ul class="children {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}">
|
||||
{{ range .Children }}
|
||||
<li class="nav-item {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
||||
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
||||
<a href='{{ cond (isset .Params "url") .Params.url .URL }}'>{{ .Name }}</a>
|
||||
<a href='{{ default .URL .Params.url }}'>{{ .Name }}</a>
|
||||
|
||||
<!-- Begin nested block -->
|
||||
{{ if .HasChildren }}
|
||||
|
@ -42,7 +42,7 @@
|
|||
{{ range .Children }}
|
||||
<li class="nav-item {{ if eq $page.RelPermalink .URL }}active{{end}}">
|
||||
{{ if .HasChildren }}<a href="#" class="children-toggle {{ if or ($page.IsMenuCurrent .Menu .) ($page.HasMenuCurrent .Menu .) }}open{{end}}"></a>{{ end }}
|
||||
<a href='{{ cond (isset .Params "url") .Params.url .URL }}'>{{ .Name }}</a>
|
||||
<a href='{{ default .URL .Params.url }}'>{{ .Name }}</a>
|
||||
<!-- To add more nested layers, copy the nested block and paste it here -->
|
||||
</li>
|
||||
{{ end }}
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
{{ if eq $type "articles" }}
|
||||
<div class="children-links">
|
||||
{{ range $pages.ByWeight }}
|
||||
{{ $title := cond ( isset .Params "list_title" ) (.Params.list_title | .RenderString) (.Title | .RenderString) }}
|
||||
{{ $url := cond ( isset .Params "external_url" ) .Params.external_url .RelPermalink }}
|
||||
{{ $target := cond ( isset .Params "external_url" ) "_blank" "" }}
|
||||
{{ $title := default .Title .Params.list_title | .RenderString }}
|
||||
{{ $url := default .RelPermalink .Params.external_url }}
|
||||
{{ $target := cond (ne .Params.external_url nil) "_blank" "" }}
|
||||
{{ if eq $hlevel "h2"}} <h2 id="{{ anchorize $title }}"><a href="{{ $url }}" target="{{ $target }}">{{ $title }}</a></h2>
|
||||
{{ else if eq $hlevel "h3"}} <h3 id="{{ anchorize $title }}"><a href="{{ $url }}" target="{{ $target }}">{{ $title }}</a></h3>
|
||||
{{ else if eq $hlevel "h4"}} <h4 id="{{ anchorize $title }}"><a href="{{ $url }}" target="{{ $target }}">{{ $title }}</a></h4>
|
||||
|
@ -69,7 +69,7 @@
|
|||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if and (eq $readMore true) ( or (isset .Params "list_query_example") (isset .Params "list_code_example") ) }}
|
||||
{{ if and (eq $readMore true) (or .Params.list_query_example .Params.list_code_example) }}
|
||||
<p class="read-more"><a href="{{ $url }}" target="{{ $target }}">Read more <span class="icon-chevron-right"></span></a></p>
|
||||
{{ end }}
|
||||
{{ if eq $hr true }}
|
||||
|
@ -94,10 +94,10 @@
|
|||
<div class="children-links">
|
||||
<ul>
|
||||
{{ range $pages.ByWeight }}
|
||||
{{ $title := cond ( isset .Params "list_title" ) (.Params.list_title | .RenderString) (.Title | .RenderString) }}
|
||||
{{ $url := cond ( isset .Params "external_url" ) .Params.external_url .RelPermalink }}
|
||||
{{ $target := cond ( isset .Params "external_url" ) "_blank" "" }}
|
||||
{{ $note := cond ( isset .Params "list_note" ) (print "<span class='list-note'>" .Params.list_note "</span>") "" }}
|
||||
{{ $title := default .Title .Params.list_title | .RenderString }}
|
||||
{{ $url := default .RelPermalink .Params.external_url }}
|
||||
{{ $target := cond (ne .Params.external_url nil) "_blank" "" }}
|
||||
{{ $note := cond (ne .Params.list_note nil) (print "<span class='list-note'>" .Params.list_note "</span>") "" }}
|
||||
<li><a href="{{ $url }}" target="{{ $target }}">{{ $title }}</a> {{ $note | markdownify }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
@ -108,10 +108,10 @@
|
|||
<div class="children-links">
|
||||
<ol>
|
||||
{{ range $pages.ByWeight }}
|
||||
{{ $title := cond ( isset .Params "list_title" ) (.Params.list_title | .RenderString) (.Title | .RenderString)}}
|
||||
{{ $url := cond ( isset .Params "external_url" ) .Params.external_url .RelPermalink }}
|
||||
{{ $target := cond ( isset .Params "external_url" ) "_blank" "" }}
|
||||
{{ $note := cond ( isset .Params "list_note" ) (print "<span class='list-note'>" .Params.list_note "</span>") "" }}
|
||||
{{ $title := default .Title .Params.list_title | .RenderString}}
|
||||
{{ $url := default .RelPermalink .Params.external_url }}
|
||||
{{ $target := cond (ne .Params.external_url nil) "_blank" "" }}
|
||||
{{ $note := cond (ne .Params.list_note nil) (print "<span class='list-note'>" .Params.list_note "</span>") "" }}
|
||||
<li><a href="{{ $url }}" target="{{ $target }}">{{ $title }}</a> {{ $note | markdownify }}</li>
|
||||
{{ end }}
|
||||
</ol>
|
||||
|
@ -121,7 +121,7 @@
|
|||
|
||||
<ul class="children-list">
|
||||
{{ range $pages.ByWeight }}
|
||||
{{ $title := cond ( isset .Params "list_title" ) (.Params.list_title | .RenderString) (.Title | .RenderString) }}
|
||||
{{ $title := default .Title .Params.list_title | .RenderString }}
|
||||
<li><a href="#{{ anchorize $title }}">{{ $title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
|
|
@ -3,7 +3,11 @@
|
|||
{{- $productPathData := findRE "[^/]+.*?" .Page.RelPermalink -}}
|
||||
{{- $product := index $productPathData 0 -}}
|
||||
{{- $productVersion := index $productPathData 1 | default "v0.0" -}}
|
||||
{{- $defaultClockface := cond (isset (index .Site.Data.clockface $product) $productVersion) (index (index .Site.Data.clockface $product) $productVersion) (index (index .Site.Data.clockface $product) "default") }}
|
||||
|
||||
{{- $defaultClockface := "" -}}
|
||||
{{- with (index .Site.Data.clockface $product) -}}
|
||||
{{- $defaultClockface = index . (cond (isset . $productVersion) $productVersion "default") -}}
|
||||
{{- end -}}
|
||||
{{- $version := .Get 1 | default $defaultClockface -}}
|
||||
|
||||
{{- if eq $version "v2" -}}
|
||||
|
|
|
@ -2,7 +2,10 @@
|
|||
{{- $productPathData := findRE "[^/]+.*?" .Page.RelPermalink -}}
|
||||
{{- $product := index $productPathData 0 -}}
|
||||
{{- $productVersion := index $productPathData 1 | default "v0" -}}
|
||||
{{- $defaultClockface := cond (isset (index .Site.Data.clockface $product) $productVersion) (index (index .Site.Data.clockface $product) $productVersion) (index (index .Site.Data.clockface $product) "default") }}
|
||||
{{- $defaultClockface := "" -}}
|
||||
{{- with (index .Site.Data.clockface $product) -}}
|
||||
{{- $defaultClockface = default (index . "default") (index . $productVersion) -}}
|
||||
{{- end -}}
|
||||
{{- $version := .Get 1 | default $defaultClockface -}}
|
||||
|
||||
{{ if eq $version "v2" }}
|
||||
|
|
Loading…
Reference in New Issue