fix menu items with external URLs, closes #3797
parent
e026efb49a
commit
fed1488e7d
|
@ -5,7 +5,8 @@ menu:
|
|||
chronograf_1_6:
|
||||
weight: 30
|
||||
parent: About the project
|
||||
url: https://www.influxdata.com/legal/cla/
|
||||
params:
|
||||
url: https://www.influxdata.com/legal/cla/
|
||||
---
|
||||
|
||||
Before you can contribute to the Chronograf project, you need to submit the [InfluxData Contributor License Agreement (CLA)](https://www.influxdata.com/legal/cla/) available on the InfluxData main site.
|
||||
|
|
|
@ -5,7 +5,8 @@ menu:
|
|||
name: Contributing
|
||||
weight: 20
|
||||
parent: About the project
|
||||
url: https://github.com/influxdata/chronograf/blob/master/CONTRIBUTING.md
|
||||
params:
|
||||
url: https://github.com/influxdata/chronograf/blob/master/CONTRIBUTING.md
|
||||
---
|
||||
|
||||
See [Contributing to Chronograf](https://github.com/influxdata/chronograf/blob/master/CONTRIBUTING.md) in the Chronograf GitHub project to learn how you can contribute to the Chronograf project.
|
||||
|
|
|
@ -5,7 +5,8 @@ menu:
|
|||
Name: Open source license
|
||||
weight: 40
|
||||
parent: About the project
|
||||
url: https://github.com/influxdata/chronograf/blob/master/LICENSE
|
||||
params:
|
||||
url: https://github.com/influxdata/chronograf/blob/master/LICENSE
|
||||
---
|
||||
|
||||
The [open source license for Chronograf](https://github.com/influxdata/chronograf/blob/master/LICENSE) is available in the Chronograf GitHub project.
|
||||
|
|
|
@ -5,7 +5,8 @@ menu:
|
|||
chronograf_1_7:
|
||||
weight: 30
|
||||
parent: About the project
|
||||
url: https://www.influxdata.com/legal/cla/
|
||||
params:
|
||||
url: https://www.influxdata.com/legal/cla/
|
||||
---
|
||||
|
||||
Before you can contribute to the Chronograf project, you need to submit the [InfluxData Contributor License Agreement (CLA)](https://www.influxdata.com/legal/cla/) available on the InfluxData main site.
|
||||
|
|
|
@ -5,7 +5,8 @@ menu:
|
|||
name: Contribute
|
||||
weight: 20
|
||||
parent: About the project
|
||||
url: https://github.com/influxdata/chronograf/blob/master/CONTRIBUTING.md
|
||||
params:
|
||||
url: https://github.com/influxdata/chronograf/blob/master/CONTRIBUTING.md
|
||||
---
|
||||
|
||||
See [Contributing to Chronograf](https://github.com/influxdata/chronograf/blob/master/CONTRIBUTING.md) in the Chronograf GitHub project to learn how you can contribute to the Chronograf project.
|
||||
|
|
|
@ -5,7 +5,8 @@ menu:
|
|||
Name: Open source license
|
||||
weight: 40
|
||||
parent: About the project
|
||||
url: https://github.com/influxdata/chronograf/blob/master/LICENSE
|
||||
params:
|
||||
url: https://github.com/influxdata/chronograf/blob/master/LICENSE
|
||||
---
|
||||
|
||||
The [open source license for Chronograf](https://github.com/influxdata/chronograf/blob/master/LICENSE) is available in the Chronograf GitHub project.
|
||||
|
|
|
@ -6,7 +6,8 @@ menu:
|
|||
chronograf_1_8:
|
||||
weight: 30
|
||||
parent: About the project
|
||||
url: https://www.influxdata.com/legal/cla/
|
||||
params:
|
||||
url: https://www.influxdata.com/legal/cla/
|
||||
---
|
||||
|
||||
Before you can contribute to the Chronograf project, you need to submit the [InfluxData Contributor License Agreement (CLA)](https://www.influxdata.com/legal/cla/) available on the InfluxData main site.
|
||||
|
|
|
@ -6,7 +6,8 @@ menu:
|
|||
name: Contribute
|
||||
weight: 20
|
||||
parent: About the project
|
||||
url: https://github.com/influxdata/chronograf/blob/master/CONTRIBUTING.md
|
||||
params:
|
||||
url: https://github.com/influxdata/chronograf/blob/master/CONTRIBUTING.md
|
||||
---
|
||||
|
||||
See [Contributing to Chronograf](https://github.com/influxdata/chronograf/blob/master/CONTRIBUTING.md) in the Chronograf GitHub project to learn how you can contribute to the Chronograf project.
|
||||
|
|
|
@ -6,7 +6,8 @@ menu:
|
|||
Name: Open source license
|
||||
weight: 40
|
||||
parent: About the project
|
||||
url: https://github.com/influxdata/chronograf/blob/master/LICENSE
|
||||
params:
|
||||
url: https://github.com/influxdata/chronograf/blob/master/LICENSE
|
||||
---
|
||||
|
||||
The [open source license for Chronograf](https://github.com/influxdata/chronograf/blob/master/LICENSE) is available in the Chronograf GitHub project.
|
||||
|
|
|
@ -6,7 +6,8 @@ menu:
|
|||
chronograf_1_9:
|
||||
weight: 30
|
||||
parent: About the project
|
||||
url: https://www.influxdata.com/legal/cla/
|
||||
params:
|
||||
url: https://www.influxdata.com/legal/cla/
|
||||
---
|
||||
|
||||
Before you can contribute to the Chronograf project, you need to submit the [InfluxData Contributor License Agreement (CLA)](https://www.influxdata.com/legal/cla/) available on the InfluxData main site.
|
||||
|
|
|
@ -6,7 +6,8 @@ menu:
|
|||
name: Contribute
|
||||
weight: 20
|
||||
parent: About the project
|
||||
url: https://github.com/influxdata/chronograf/blob/master/CONTRIBUTING.md
|
||||
params:
|
||||
url: https://github.com/influxdata/chronograf/blob/master/CONTRIBUTING.md
|
||||
---
|
||||
|
||||
See [Contributing to Chronograf](https://github.com/influxdata/chronograf/blob/master/CONTRIBUTING.md) in the Chronograf GitHub project to learn how you can contribute to the Chronograf project.
|
||||
|
|
|
@ -6,7 +6,8 @@ menu:
|
|||
Name: Open source license
|
||||
weight: 40
|
||||
parent: About the project
|
||||
url: https://github.com/influxdata/chronograf/blob/master/LICENSE
|
||||
params:
|
||||
url: https://github.com/influxdata/chronograf/blob/master/LICENSE
|
||||
---
|
||||
|
||||
The [open source license for Chronograf](https://github.com/influxdata/chronograf/blob/master/LICENSE) is available in the Chronograf GitHub project.
|
||||
|
|
|
@ -9,6 +9,7 @@ menu:
|
|||
influxdb_cloud:
|
||||
name: Arduino
|
||||
parent: Client libraries
|
||||
url: https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino
|
||||
params:
|
||||
url: https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_cloud:
|
||||
name: C#
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-csharp
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-csharp
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_cloud:
|
||||
name: Dart
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-dart
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-dart
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_cloud:
|
||||
name: Java
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-java
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-java
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_cloud:
|
||||
name: Kotlin
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-java/tree/master/client-kotlin
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-java/tree/master/client-kotlin
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_cloud:
|
||||
name: PHP
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-php
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-php
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_cloud:
|
||||
name: R
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-r
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-r
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_cloud:
|
||||
name: Ruby
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-ruby
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-ruby
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_cloud:
|
||||
name: Scala
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-java/tree/master/client-scala
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-java/tree/master/client-scala
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_cloud:
|
||||
name: Swift
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-swift
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-swift
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -6,7 +6,8 @@ menu:
|
|||
influxdb_1_3:
|
||||
weight: 80
|
||||
parent: Tools
|
||||
url: https://github.com/influxdata/influxdb/blob/master/services/collectd/README.md
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb/blob/master/services/collectd/README.md
|
||||
---
|
||||
|
||||
See the [README](https://github.com/influxdata/influxdb/blob/master/services/collectd/README.md) on GitHub.
|
||||
|
|
|
@ -6,7 +6,8 @@ menu:
|
|||
influxdb_1_3:
|
||||
weight: 70
|
||||
parent: Tools
|
||||
url: https://github.com/influxdata/influxdb/blob/master/services/graphite/README.md
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb/blob/master/services/graphite/README.md
|
||||
---
|
||||
|
||||
See the [README](https://github.com/influxdata/influxdb/blob/master/services/graphite/README.md) on GitHub.
|
||||
|
|
|
@ -6,7 +6,8 @@ menu:
|
|||
influxdb_1_3:
|
||||
weight: 90
|
||||
parent: Tools
|
||||
url: https://github.com/influxdb/influxdb/blob/1.3/services/opentsdb/README.md
|
||||
params:
|
||||
url: https://github.com/influxdb/influxdb/blob/1.3/services/opentsdb/README.md
|
||||
---
|
||||
|
||||
See the [README](https://github.com/influxdata/influxdb/blob/master/services/opentsdb/README.md) on GitHub.
|
||||
|
|
|
@ -6,7 +6,8 @@ menu:
|
|||
influxdb_1_3:
|
||||
weight: 60
|
||||
parent: Tools
|
||||
url: https://github.com/influxdata/influxdb/blob/master/services/udp/README.md
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb/blob/master/services/udp/README.md
|
||||
---
|
||||
|
||||
See the [README](https://github.com/influxdata/influxdb/blob/master/services/udp/README.md) on GitHub.
|
||||
|
|
|
@ -9,6 +9,7 @@ menu:
|
|||
influxdb_2_0:
|
||||
name: Arduino
|
||||
parent: Client libraries
|
||||
url: https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino
|
||||
params:
|
||||
url: https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_2_0:
|
||||
name: C#
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-csharp
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-csharp
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_2_0:
|
||||
name: Dart
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-dart
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-dart
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_2_0:
|
||||
name: Java
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-java
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-java
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_2_0:
|
||||
name: Kotlin
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-java/tree/master/client-kotlin
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-java/tree/master/client-kotlin
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_2_0:
|
||||
name: PHP
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-php
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-php
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_2_0:
|
||||
name: R
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-r
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-r
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_2_0:
|
||||
name: Ruby
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-ruby
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-ruby
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_2_0:
|
||||
name: Scala
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-java/tree/master/client-scala
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-java/tree/master/client-scala
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_2_0:
|
||||
name: Swift
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-swift
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-swift
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -9,6 +9,7 @@ menu:
|
|||
influxdb_2_1:
|
||||
name: Arduino
|
||||
parent: Client libraries
|
||||
url: https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino
|
||||
params:
|
||||
url: https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_2_1:
|
||||
name: C#
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-csharp
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-csharp
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_2_1:
|
||||
name: Dart
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-dart
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-dart
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_2_1:
|
||||
name: Java
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-java
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-java
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_2_1:
|
||||
name: Kotlin
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-java/tree/master/client-kotlin
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-java/tree/master/client-kotlin
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_2_1:
|
||||
name: PHP
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-php
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-php
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_2_1:
|
||||
name: R
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-r
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-r
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_2_1:
|
||||
name: Ruby
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-ruby
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-ruby
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_2_1:
|
||||
name: Scala
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-java/tree/master/client-scala
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-java/tree/master/client-scala
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -8,6 +8,7 @@ menu:
|
|||
influxdb_2_1:
|
||||
name: Swift
|
||||
parent: Client libraries
|
||||
url: https://github.com/influxdata/influxdb-client-swift
|
||||
params:
|
||||
url: https://github.com/influxdata/influxdb-client-swift
|
||||
weight: 201
|
||||
---
|
||||
|
|
|
@ -6,5 +6,6 @@ menu:
|
|||
name: Contributing
|
||||
weight: 20
|
||||
parent: About the project
|
||||
url: https://github.com/influxdata/kapacitor/blob/master/CONTRIBUTING.md
|
||||
params:
|
||||
url: https://github.com/influxdata/kapacitor/blob/master/CONTRIBUTING.md
|
||||
---
|
||||
|
|
|
@ -7,7 +7,8 @@ menu:
|
|||
name: Contributing event handler integrations
|
||||
weight: 30
|
||||
parent: About the project
|
||||
url: https://github.com/influxdata/kapacitor/blob/master/alert/HANDLERS.md
|
||||
params:
|
||||
url: https://github.com/influxdata/kapacitor/blob/master/alert/HANDLERS.md
|
||||
---
|
||||
|
||||
This page explains how you can create event handlers for alerting within Kapacitor.
|
||||
|
|
|
@ -6,5 +6,6 @@ menu:
|
|||
name: Open source license
|
||||
weight: 50
|
||||
parent: About the project
|
||||
url: https://github.com/influxdata/kapacitor/blob/master/LICENSE
|
||||
params:
|
||||
url: https://github.com/influxdata/kapacitor/blob/master/LICENSE
|
||||
---
|
||||
|
|
|
@ -6,5 +6,6 @@ menu:
|
|||
name: Contributing
|
||||
weight: 10
|
||||
parent: About the project
|
||||
url: https://github.com/influxdata/kapacitor/blob/master/CONTRIBUTING.md
|
||||
params:
|
||||
url: https://github.com/influxdata/kapacitor/blob/master/CONTRIBUTING.md
|
||||
---
|
||||
|
|
|
@ -6,5 +6,6 @@ menu:
|
|||
name: License
|
||||
weight: 40
|
||||
parent: About the project
|
||||
url: https://github.com/influxdata/kapacitor/blob/master/LICENSE
|
||||
params:
|
||||
url: https://github.com/influxdata/kapacitor/blob/master/LICENSE
|
||||
---
|
||||
|
|
|
@ -9,5 +9,6 @@ menu:
|
|||
identifier: custom_alert
|
||||
weight: 4
|
||||
parent: work-w-kapacitor
|
||||
url: https://github.com/influxdata/kapacitor/blob/master/alert/HANDLERS.md
|
||||
params:
|
||||
url: https://github.com/influxdata/kapacitor/blob/master/alert/HANDLERS.md
|
||||
---
|
||||
|
|
|
@ -6,5 +6,6 @@ menu:
|
|||
name: Contributing
|
||||
weight: 10
|
||||
parent: About the project
|
||||
url: https://github.com/influxdata/kapacitor/blob/master/CONTRIBUTING.md
|
||||
params:
|
||||
url: https://github.com/influxdata/kapacitor/blob/master/CONTRIBUTING.md
|
||||
---
|
||||
|
|
|
@ -6,5 +6,6 @@ menu:
|
|||
name: License
|
||||
weight: 40
|
||||
parent: About the project
|
||||
url: https://github.com/influxdata/kapacitor/blob/master/LICENSE
|
||||
params:
|
||||
url: https://github.com/influxdata/kapacitor/blob/master/LICENSE
|
||||
---
|
||||
|
|
|
@ -9,5 +9,6 @@ menu:
|
|||
identifier: custom_alert
|
||||
weight: 4
|
||||
parent: work-w-kapacitor
|
||||
url: https://github.com/influxdata/kapacitor/blob/master/alert/HANDLERS.md
|
||||
params:
|
||||
url: https://github.com/influxdata/kapacitor/blob/master/alert/HANDLERS.md
|
||||
---
|
||||
|
|
|
@ -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='{{ cond (isset .Params "url") .Params.url .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="{{ .URL }}">{{ .Name }}</a>
|
||||
<a href='{{ cond (isset .Params "url") .Params.url .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="{{ .URL }}">{{ .Name }}</a>
|
||||
<a href='{{ cond (isset .Params "url") .Params.url .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="{{ .URL }}">{{ .Name }}</a>
|
||||
<a href='{{ cond (isset .Params "url") .Params.url .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="{{ .URL }}">{{ .Name }}</a>
|
||||
<a href='{{ cond (isset .Params "url") .Params.url .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="{{ .URL }}">{{ .Name }}</a>
|
||||
<a href='{{ cond (isset .Params "url") .Params.url .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="{{ .URL }}">{{ .Name }}</a>
|
||||
<a href='{{ cond (isset .Params "url") .Params.url .URL }}'>{{ .Name }}</a>
|
||||
<!-- To add more nested layers, copy the nested block and paste it here -->
|
||||
</li>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue