added product tags to nav and article templates, removed unused shortcodes, updated contributing

pull/963/head
Scott Anderson 2020-04-22 11:05:44 -06:00
parent 737ce75b08
commit a8250c06a5
30 changed files with 160 additions and 246 deletions

View File

@ -64,10 +64,6 @@ menu:
parent: # Specifies a parent group and nests navigation items
weight: # Determines sort order in both the nav tree and in article lists
draft: # If true, will not render page on build
enterprise_all: # If true, specifies the doc as a whole is specific to InfluxDB Enterprise
enterprise_some: # If true, specifies the doc includes some content specific to InfluxDB Enterprise
cloud_all: # If true, specifies the doc as a whole is specific to InfluxDB Cloud
cloud_some: # If true, specifies the doc includes some content specific to InfluxDB Cloud
v2.x/tags: # Tags specific to each version (replace .x" with the appropriate minor version )
related: # Creates links to specific internal and external content at the bottom of the page
- /path/to/related/article
@ -76,6 +72,7 @@ external_url: # Used in children shortcode type="list" for page links that are e
list_image: # Image included with article descriptions in children type="articles" shortcode
list_note: # Used in children shortcode type="list" to add a small note next to listed links
list_code_example: # Code example included with article descriptions in children type="articles" shortcode
products: # List of products that the page specifically applies to: [oss, cloud, enterprise]
```
#### Title usage
@ -124,27 +121,7 @@ Insert warning markdown content here.
```
### Enterprise Content
Many articles are unique to InfluxDB enterprise or at least contain some information specific to InfluxDB Enterprise.
There are frontmatter options and an enterprise shortcode that help to properly identify this content.
#### All content is Enterprise-specific
If all content in an article is Enterprise-specific, set the `enterprise_all` frontmatter to `true`.
```yaml
enterprise_all: true
```
This will display a message at the top of page indicating that the things discussed are unique to InfluxDB Enterprise.
#### Only some content is Enterprise-specific
If only some content in the article is enterprise specific, set the `enterprise_some` frontmatter to `true`.
```yaml
enterprise_some: true
```
This will display a message at the top of page indicating some things are unique to InfluxDB Enterprise.
To format Enterprise-specific content, wrap it in the `{{% enterprise %}}` shortcode:
For sections content that relate specifically to InfluxDB Enterprise, use the `{{% enterprise %}}` shortcode.
```md
{{% enterprise %}}
@ -152,6 +129,13 @@ Insert enterprise-specific markdown content here.
{{% /enterprise %}}
```
#### All content is Enterprise-specific
If all content in an article is Enterprise-specific, include `enterprise`in the `products` frontmatter.
```yaml
products: [enterprise]
```
#### Enterprise name
The name used to refer to InfluxData's enterprise offering is subject to change.
To facilitate easy updates in the future, use the `enterprise-name` shortcode
@ -177,47 +161,19 @@ Find more info [here][{{< enterprise-link >}}]
```
### InfluxDB Cloud Content
Some articles are unique to InfluxDB Cloud or at least contain some information specific to InfluxDB Cloud.
There are frontmatter options and an cloud shortcode that help to properly identify this content.
#### All content is cloud-specific
If all content in an article is cloud-specific, set the menu in the frontmatter to `v2_0_cloud`
(change the version number for the specific version of InfluxDB Cloud).
```yaml
menu:
v2_0_cloud:
name: Menu item name
# ...
```
The pages `parent` depends on where it fits in the hierarchy of the cloud documentation.
#### Only some content is cloud-specific
If only some content in the article is cloud-specific, set the `cloud_some` frontmatter to `true`.
```yaml
cloud_some: true
```
This will display a message at the top of page indicating some things are unique to InfluxDB Cloud.
To format cloud-specific content, wrap it in the `{{% cloud %}}` shortcode:
For sections content that relate specifically to InfluxDB Cloud, use the `{{% cloud %}}` shortcode.
```md
{{% cloud %}}
Insert Cloud-specific markdown content here.
Insert cloud-specific markdown content here.
{{% /cloud %}}
```
#### InfluxDB Cloud content block
The `{{ cloud-msg }}` shortcode creates a highlighted block of text specific to
InfluxDB Cloud meant to stand out from the rest of the article content.
It's format is similar to note and warning blocks.
#### All content is cloud-specific
If all content in an article is cloud-specific, include `cloud` in the `products` frontmatter.
```md
{{% cloud-msg %}}
Insert Cloud-specific markdown content here.
{{% /cloud-msg %}}
```yaml
products: [cloud]
```
#### InfluxDB Cloud name
@ -244,6 +200,13 @@ InfluxDB Cloud.
Find more info [here][{{< cloud-link >}}]
```
### InfluxDB OSS Content
If all content in an article is OSS-specific, include `oss` in the `products` frontmatter.
```yaml
products: [oss]
```
### Tabbed Content
Shortcodes are available for creating "tabbed" content (content that is changed by a users' selection).
Ther following three must be used:

View File

@ -108,6 +108,7 @@
"article/lists",
"article/note",
"article/pagination-btns",
"article/product-tags",
"article/related",
"article/scrollbars",
"article/svgs",

View File

@ -167,7 +167,45 @@
text-decoration: none;
font-weight: $medium;
display: inline-block;
// Product exclusivity labels
span:after{
display: inline-block;
position: relative;
top: -2px;
margin-left: .15rem;
padding: .45rem .17rem .35rem;
line-height: 0;
font-size: .6rem;
border-radius: 8px;
}
.cloud {
&:after {
content: "CLOUD";
color: $product-cloud;
border: 1px solid rgba($product-cloud, .5);
background: rgba($product-cloud, .1);
}
}
.oss {
&:after {
content: "OSS";
color: $product-oss;
border: 1px solid rgba($product-oss, .5);
background: rgba($product-oss, .1);
}
}
.enterprise {
&:after {
content: "ENT";
color: $product-enterprise;
border: 1px solid rgba($product-enterprise, .5);
background: rgba($product-enterprise, .1);
}
}
}
.nav-category > a {
color: $nav-category;
font-size: 1.1rem;

View File

@ -1,37 +1,4 @@
.cloud {
position: relative;
padding: 0 0 .01rem 2rem;
margin-left: -2rem;
border-left: 2px solid $article-cloud-base;
.cloud-flag {
&:hover {
transform: scale(1);
color: $g20-white;
}
}
}
.cloud-flag {
padding: .2rem .4rem;
font-size: .75rem;
font-style: normal;
font-weight: bold;
color: $g20-white;
border-radius: $radius;
vertical-align: text-bottom;
background: $article-cloud-base;
position: absolute;
top: -.15rem;
left: -.68rem;
transform: scale(.8);
transition: all .2s;
&:before {
content: "C";
}
}
.cloud-msg {
border-color: $article-cloud-base;
background: rgba($article-cloud-base, .12);
h1,h2,h3,h4,h5,h6 {
@ -97,19 +64,3 @@
}
}
}
////////////////////////////////////////////////////////////////////////////////
///////////////////////////////// MEDIA QUERIES ////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
@include media(small) {
.cloud-msg .cloud-flag { margin-left: .5rem }
.cloud {
padding: 0 0 .01rem .85rem;
margin-left: -.85rem;
.cloud-flag {
left: -.25rem;
}
}
}

View File

@ -1,37 +1,4 @@
.enterprise {
position: relative;
padding: 0 0 .01rem 2rem;
margin-left: -2rem;
border-left: 2px solid $article-enterprise-base;
.enterprise-flag {
&:hover {
transform: scale(1);
color: $g20-white;
}
}
}
.enterprise-flag {
padding: .2rem .4rem;
font-size: .75rem;
font-style: normal;
font-weight: bold;
color: $g20-white;
border-radius: $radius;
vertical-align: text-bottom;
background: $article-enterprise-base;
position: absolute;
top: -.15rem;
left: -.68rem;
transform: scale(.8);
transition: all .2s;
&:before {
content: "E";
}
}
.enterprise-msg {
border-color: $article-enterprise-base;
background: rgba($article-enterprise-base, .15);
p,li {
@ -50,21 +17,3 @@
}
}
}
////////////////////////////////////////////////////////////////////////////////
///////////////////////////////// MEDIA QUERIES ////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
@include media(small) {
.enterprise-msg .enterprise-flag {
margin-left: .5rem;
}
.enterprise {
padding: 0 0 .01rem .85rem;
margin-left: -.85rem;
.enterprise-flag {
left: -.25rem;
}
}
}

View File

@ -0,0 +1,28 @@
.product-tags {
margin-top: -2rem;
span {
margin-right: .25rem;
padding: .2rem .65rem .25rem;
border-radius: 1rem;
font-weight: $medium;
font-style: italic;
font-size: .85rem;
border: 1px solid;
&.oss {
color: $product-oss;
border-color: rgba($product-oss, .35);
background: rgba($product-oss, .1);
}
&.cloud {
color: $product-cloud;
border-color: rgba($product-cloud, .35);
background: rgba($product-cloud, .1);
}
&.enterprise {
color: $product-enterprise;
border-color: rgba($product-enterprise, .35);
background: rgba($product-enterprise, .1);
}
}
}

View File

@ -11,7 +11,7 @@ table { @include scrollbar($article-table-row-alt, $article-table-scrollbar);}
pre { @include scrollbar($article-warn-code-bg, $article-warn-code-scrollbar); }
table { @include scrollbar($article-warn-table-row-alt, $article-warn-table-scrollbar); }
}
.cloud-msg {
.cloud {
pre { @include scrollbar($article-cloud-code-bg, $article-cloud-code-scrollbar); }
table { @include scrollbar($article-cloud-table-row-alt, $article-cloud-table-scrollbar); }
}

View File

@ -13,6 +13,16 @@
font-weight: $medium;
color: rgba($article-text, .75);
font-size: .8rem;
border-radius: 1rem;
&:after {
border-radius: 1rem;
@include gradient($grad-MilkyWay)
}
&:hover {
color: $g20-white;
}
}
}

View File

@ -40,6 +40,11 @@ $nav-toggle-hover: $g16-pearl;
$nav-toggle-bg-hover: $b-pool;
$nav-active: $br-chartreuse;
// Product Flags
$product-cloud: $b-dodger;
$product-oss: $p-potassium;
$product-enterprise: $br-galaxy;
// Article Content
$article-bg: $g1-raven;
$article-heading: $g20-white;

View File

@ -41,6 +41,11 @@ $nav-toggle-hover: $g20-white !default;
$nav-toggle-bg-hover: $br-magenta !default;
$nav-active: $br-magenta !default;
// Product Flags
$product-cloud: $b-pool !default;
$product-oss: $p-comet !default;
$product-enterprise: $br-pulsar !default;
// Article Content
$article-bg: $g20-white !default;
$article-heading: $br-pulsar !default;

View File

@ -24,9 +24,9 @@ Root tokens created prior to **v2.0.0-beta.2** do not have the necessary permiss
To succesfully use the backup tool, set up a new InfluxDB instance using **v2.0.0-beta.2+**.
{{% /warn %}}
{{% cloud-msg %}}
{{% cloud %}}
The `influx backup` command **cannot** back up data stored in **{{< cloud-name "short" >}}**.
{{% /cloud-msg %}}
{{% /cloud %}}
The `influx backup` command requires:

View File

@ -17,9 +17,9 @@ related:
Use the `influxd restore` command to restore backup data and metadata from InfluxDB.
You must stop InfluxDB before restoring data.
{{% cloud-msg %}}
{{% cloud %}}
The `influxd restore` command only restores data to InfluxDB OSS, **not {{< cloud-name "short" >}}**.
{{% /cloud-msg %}}
{{% /cloud %}}
When restoring data from a backup file set, InfluxDB temporarily moves existing
data and metadata while the restore process runs.

View File

@ -7,6 +7,7 @@ weight: 4
menu:
v2_0_cloud:
name: Account management
products: [cloud]
---
{{< children >}}

View File

@ -5,16 +5,13 @@ menu:
v2_0:
name: Example post
weight: 1
enterprise_all: true
#enterprise_some: true
#cloud_all: true
cloud_some: true
draft: true
#draft: true
"v2.0/tags": [influxdb, functions]
related:
- /v2.0/write-data/
- /v2.0/write-data/quick-start
- https://influxdata.com, This is an external link
products: [cloud, oss, enterprise]
---
This is a paragraph. Lorem ipsum dolor ({{< icon "trash" >}}) sit amet, consectetur adipiscing elit. Nunc rutrum, metus id scelerisque euismod, erat ante suscipit nibh, ac congue enim risus id est. Etiam tristique nisi et tristique auctor. Morbi eu bibendum erat. Sed ullamcorper, dui id lobortis efficitur, mauris odio pharetra neque, vel tempor odio dolor blandit justo.
@ -474,7 +471,7 @@ cpu = from(bucket:"my-bucket")
{{% /warn %}}
{{% cloud-msg %}}
{{% cloud %}}
This is a multiple paragraph blockquote with internal elements.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
@ -596,7 +593,7 @@ cpu = from(bucket:"my-bucket")
| Row 3.1 | `Row 3.2` | Row 3.3 | Row 3.4 | Row 3.1 | `Row 3.2` | Row 3.3 | Row 3.4 |
| Row 4.1 | `Row 4.2` | Row 4.3 | Row 4.4 | Row 4.1 | `Row 4.2` | Row 4.3 | Row 4.4 |
{{% /cloud-msg %}}
{{% /cloud %}}
{{< tabs-wrapper >}}
{{% tabs %}}

View File

@ -83,11 +83,11 @@ Currently, we do **not support** using an existing InfluxDB Cloud 2.0 account to
_To update organization and bucket names, see [Update an organization](/v2.0/organizations/update-org/)
and [Update a bucket](/v2.0/organizations/buckets/update-bucket/#update-a-bucket-s-name-in-the-influxdb-ui)._
{{% cloud-msg %}}
{{% cloud %}}
All InfluxDB 2.0 documentation applies to {{< cloud-name "short" >}} unless otherwise specified.
References to the InfluxDB user interface (UI) or localhost:9999 refer to your
{{< cloud-name >}} UI.
{{% /cloud-msg %}}
{{% /cloud %}}
### Sign in

View File

@ -12,10 +12,10 @@ weight: 101
Use the InfluxDB user interface (UI) or the `influx` command line interface (CLI)
to create an organization.
{{% cloud-msg %}}
{{% cloud %}}
You cannot currently create additional organizations in {{< cloud-name >}}.
Only the default organization is available.
{{% /cloud-msg %}}
{{% /cloud %}}
## Create an organization in the InfluxDB UI

View File

@ -11,9 +11,9 @@ weight: 201
Use the `influx` command line interface (CLI) to add a member to an organization.
{{% cloud-msg %}}
{{% cloud %}}
Adding members is currently unavailable in {{< cloud-name >}}.
{{% /cloud-msg %}}
{{% /cloud %}}
<!-- ## Add a member to an organization in the InfluxDB UI

View File

@ -13,9 +13,9 @@ There are two options for storing secrets with InfluxDB:
- By default, secrets are Base64-encoded and stored in the InfluxDB embedded key value store, [BoltDB](https://github.com/boltdb/bolt).
- You can also set up Vault to store secrets. For details, see [Store secrets in Vault](/v2.0/security/secrets/use-vault).
{{% cloud-msg %}}
{{% cloud %}}
By default, all secrets added to InfluxDB Cloud are stored in the InfluxDB Cloud Vault cluster.
{{% /cloud-msg %}}
{{% /cloud %}}
## Use secrets in a query
Import the `influxdata/influxd/secrets` package and use the `secrets.get()` function

View File

@ -12,9 +12,9 @@ weight: 201
to tokens, passwords, certificates, and other sensitive secrets.
Store sensitive secrets in Vault using the InfluxDB built-in Vault integration.
{{% cloud-msg %}}
{{% cloud %}}
By default, all secrets added to InfluxDB Cloud are stored in the InfluxDB Cloud Vault cluster.
{{% /cloud-msg %}}
{{% /cloud %}}
## Start a Vault server

View File

@ -130,8 +130,8 @@ To configure a Telegraf agent, see [Automatically create a Telegraf configuratio
To scrape metrics, see [Create a scraper](/v2.0/write-data/scrape-data/manage-scrapers/create-a-scraper/#create-a-scraper-in-the-influxdb-ui).
{{% cloud-msg %}}{{< cloud-name >}} does not support scrapers.
{{% /cloud-msg %}}
{{% cloud %}}{{< cloud-name >}} does not support scrapers.
{{% /cloud %}}
### influx CLI
@ -211,9 +211,9 @@ curl -XPOST "http://localhost:9999/api/v2/write?org=YOUR_ORG&bucket=YOUR_BUCKET&
{{% /tab-content %}}
{{% tab-content %}}
{{% cloud-msg %}}
{{% cloud %}}
For the specific URL of your {{< cloud-name "short" >}} instance, see [InfluxDB Cloud URLs](/v2.0/cloud/urls/).
{{% /cloud-msg %}}
{{% /cloud %}}
```sh
curl -XPOST "YOUR-INFLUXDB-CLOUD-URL/api/v2/write?org=YOUR_ORG&bucket=YOUR_BUCKET&precision=s" \

View File

@ -13,6 +13,7 @@ menu:
v2_0:
name: Scrape data
parent: Write data
products: [oss]
---
InfluxDB scrapers collect data from specified targets at regular intervals,
@ -20,9 +21,9 @@ then write the scraped data to an InfluxDB bucket.
Scrapers can collect data from any HTTP(S)-accessible endpoint that provides data
in the [Prometheus data format](https://prometheus.io/docs/instrumenting/exposition_formats/).
{{% cloud-msg %}}
{{% cloud %}}
Scrapers are not available in {{< cloud-name "short" >}}.
{{% /cloud-msg %}}
{{% /cloud %}}
The following articles provide information about creating and managing InfluxDB data scrapers:

View File

@ -130,9 +130,9 @@ The example below illustrates `influxdb_v2` configurations that write to InfluxD
{{% /tab-content %}}
{{% tab-content %}}
{{% cloud-msg %}}
{{% cloud %}}
For the specific URL of your {{< cloud-name "short" >}} instance, see [InfluxDB Cloud URLs](/v2.0/cloud/urls/).
{{% /cloud-msg %}}
{{% /cloud %}}
```toml
# ...

View File

@ -1,9 +1,8 @@
<div class="article">
<article class="article--content">
<h1>{{ .Title }}</h1>
{{ partial "article/product-tags.html" . }}
{{ partial "article/stable-version.html" . }}
{{ partial "article/enterprise.html" . }}
{{ partial "article/cloud.html" . }}
{{ partial "article/flux-experimental.html" . }}
{{ .Content }}
{{ partial "article/related.html" . }}

View File

@ -1,20 +0,0 @@
{{ $cloudName := .Site.Data.products.cloud.name }}
{{ $cloudLink := .Site.Data.products.cloud.link }}
{{ if ( $.Params.cloud_all ) }}
<div class="cloud-msg block" id="cloud-msg">
<p>
The features and functionality discussed on this page are unique to <a href="{{ $cloudLink }}" target="_blank">{{ $cloudName }}</a>.
</p>
</div>
{{ else if ( $.Params.cloud_some ) }}
<div class="cloud-msg flex block" id="cloud-msg">
<div>
<span class="cloud-flag"></span>
</div>
<div>
<p>
This page includes features and functionality unique to <a href="{{ $cloudLink }}" target="_blank">{{ $cloudName }}</a>.
</p>
</div>
</div>
{{ end }}

View File

@ -1,20 +0,0 @@
{{ $enterpriseName := .Site.Data.products.enterprise.name }}
{{ $enterpriseLink := .Site.Data.products.enterprise.link }}
{{ if ( $.Params.enterprise_all ) }}
<div class="enterprise-msg block" id="enterprise-msg">
<p>
The features and functionality discussed on this page are unique to <a href="{{ $enterpriseLink }}" target="_blank">{{ $enterpriseName }}</a>.
</p>
</div>
{{ else if ( $.Params.enterprise_some ) }}
<div class="enterprise-msg block flex" id="enterprise-msg">
<div>
<span class="enterprise-flag"></span>
</div>
<div>
<p>
This page includes features and functionality unique to <a href="{{ $enterpriseLink }}" target="_blank">{{ $enterpriseName }}</a>.
</p>
</div>
</div>
{{ end }}

View File

@ -0,0 +1,12 @@
<p class="product-tags">
{{ if .Params.products }}
{{ range .Params.products }}
{{ $product := . }}
{{ $scratch := newScratch }}
{{ if eq $product "oss"}}{{ $scratch.Set "product-tag" "OSS" }}{{ end }}
{{ if eq $product "cloud"}}{{ $scratch.Set "product-tag" "Cloud" }}{{ end }}
{{ if eq $product "enterprise"}}{{ $scratch.Set "product-tag" "Enterprise" }}{{ end }}
<span class="{{ . }}">InfluxDB {{ $scratch.Get "product-tag"}}</span>
{{ end }}
{{ end }}
</p>

View File

@ -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="{{ .URL }}">{{ .Name }}</a>
<a href="{{ .URL }}">{{ .Name }} {{ if .Page.Params.products }}{{ range .Page.Params.products }}<span class="{{ . }}"></span>{{ end }}{{ end }}</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="{{ .URL }}">{{ .Name }}</a>
<a href="{{ .URL }}">{{ .Name }} {{ if .Page.Params.products }}{{ range .Page.Params.products }}<span class="{{ . }}"></span>{{ end }}{{ end }}</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="{{ .URL }}">{{ .Name }}</a>
<a href="{{ .URL }}">{{ .Name }} {{ if .Page.Params.products }}{{ range .Page.Params.products }}<span class="{{ . }}"></span>{{ end }}{{ end }}</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="{{ .URL }}">{{ .Name }}</a>
<a href="{{ .URL }}">{{ .Name }} {{ if .Page.Params.products }}{{ range .Page.Params.products }}<span class="{{ . }}"></span>{{ end }}{{ end }}</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="{{ .URL }}">{{ .Name }}</a>
<a href="{{ .URL }}">{{ .Name }} {{ if .Page.Params.products }}{{ range .Page.Params.products }}<span class="{{ . }}"></span>{{ end }}{{ end }}</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="{{ .URL }}">{{ .Name }}</a>
<a href="{{ .URL }}">{{ .Name }} {{ if .Page.Params.products }}{{ range .Page.Params.products }}<span class="{{ . }}"></span>{{ end }}{{ end }}</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="{{ .URL }}">{{ .Name }}</a>
<a href="{{ .URL }}">{{ .Name }} {{ if .Page.Params.products }}{{ range .Page.Params.products }}<span class="{{ . }}"></span>{{ end }}{{ end }}</a>
<!-- To add more nested layers, copy the nested block and paste it here -->
</li>
{{ end }}

View File

@ -1,4 +0,0 @@
{{ $_hugo_config := `{ "version": 1 }` }}
<div class="cloud-msg block">
{{ .Inner }}
</div>

View File

@ -1,5 +1,4 @@
{{ $_hugo_config := `{ "version": 1 }` }}
<div class="cloud">
<a class="cloud-flag" href="#cloud-msg"></a>
<div class="cloud block">
{{ .Inner }}
</div>

View File

@ -1,5 +1,4 @@
{{ $_hugo_config := `{ "version": 1 }` }}
<div class="enterprise">
<a class="enterprise-flag" href="#enterprise-msg"></a>
<div class="enterprise block">
{{ .Inner }}
</div>