updated children shortcode for list notes

pull/819/head
Scott Anderson 2020-03-11 10:22:32 -06:00
parent e4416d7cdb
commit 477abcf63e
4 changed files with 8 additions and 5 deletions

View File

@ -45,4 +45,6 @@ li {
p + ol {
margin: -.9rem 0 .5rem;
}
.list-note { font-size: .85rem }
}

View File

@ -3,7 +3,7 @@ title: InfluxDB Arduino client library
list_title: Arduino
description: Use the Arduino client library to interact with InfluxDB.
external_url: https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino
list_note: _(contributed by [tobiasschuerg](https://github.com/tobiasschuerg))_
list_note: _ contributed by [tobiasschuerg](https://github.com/tobiasschuerg)_
menu:
v2_0_ref:
name: Arduino

View File

@ -3,7 +3,6 @@ title: Python client library
list_title: Python
description: >
Use the Python client library to interact with InfluxDB.
weight: 201
menu:
v2_0_ref:
name: Python
@ -11,6 +10,7 @@ menu:
v2.0/tags: [client libraries, python]
aliases:
- /v2.0/reference/api/client-libraries/python-cl-guide/
weight: 201
---
Use the [InfluxDB Python client libary](https://github.com/influxdata/influxdb-client-python) to integrate InfluxDB into Python scripts and applications.

View File

@ -38,10 +38,11 @@
<ul>
{{ range $pages.ByWeight }}
{{ $url := cond ( isset .Params "external_url" ) .Params.external_url .RelPermalink }}
{{ $note := cond ( isset .Params "list_note" ) .Params.list_note "" }}
{{ $title := replaceRE `\ function` "" .Title }}
<li><a href="{{ $url }}">{{ if .Params.list_title }}{{ .Params.list_title }}{{ else }}{{ $title }}{{ end }}</a> {{ $note | markdownify }}</li>
{{ $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>") "" }}
<li><a href="{{ $url }}" target="{{ $target }}">{{ if .Params.list_title }}{{ .Params.list_title }}{{ else }}{{ $title }}{{ end }}</a> {{ $note | markdownify }}</span></li>
{{ end }}
<ul>