updated children shortcode to show a list_image

pull/264/head
Scott Anderson 2019-06-13 11:51:46 -06:00
parent 4af97e0898
commit ff90875a1f
9 changed files with 19 additions and 0 deletions

View File

@ -1,6 +1,7 @@
---
title: Gauge visualization
list_title: Gauge
list_image: /img/2-0-visualizations-gauge-example.png
description: >
The Gauge view displays the single value most recent value for a time series in a gauge view.
weight: 206

View File

@ -1,6 +1,7 @@
---
title: Graph + Single Stat visualization
list_title: Graph + Single Stat
list_image: /img/2-0-visualizations-line-graph-single-stat-example.png
description: >
The Graph + Single Stat view displays the specified time series in a line graph
and overlays the single most recent value as a large numeric value.

View File

@ -1,6 +1,7 @@
---
title: Graph visualization
list_title: Graph
list_image: /img/2-0-visualizations-line-graph-example.png
description: >
The Graph view lets you select from multiple graph types such as line graphs and bar graphs *(Coming)*.
weight: 201

View File

@ -1,6 +1,7 @@
---
title: Heatmap visualization
list_title: Heatmap
list_image: /img/2-0-visualizations-heatmap-example.png
description: >
A Heatmap displays the distribution of data on an x and y axes where color
represents different concentrations of data points.

View File

@ -1,6 +1,7 @@
---
title: Histogram visualization
list_title: Histogram
list_image: /img/2-0-visualizations-histogram-example.png
description: >
A histogram is a way to view the distribution of data. Unlike column charts, histograms have no time axis.
The y-axis is dedicated to count, and the x-axis is divided into bins.

View File

@ -1,6 +1,7 @@
---
title: Scatter visualization
list_title: Scatter
list_image: /img/2-0-visualizations-scatter-example.png
description: >
The Scatter view uses a scatter plot to display time series data.
weight: 208

View File

@ -1,6 +1,7 @@
---
title: Single Stat visualization
list_title: Single stat
list_image: /img/2-0-visualizations-single-stat-example.png
description: >
The Single Stat view displays the most recent value of the specified time series as a numerical value.
weight: 205

View File

@ -1,6 +1,7 @@
---
title: Table visualization
list_title: Single stat
list_image: /img/2-0-visualizations-table-example.png
description: >
The Table option displays the results of queries in a tabular view, which is
sometimes easier to analyze than graph views of data.

View File

@ -21,6 +21,17 @@
{{ else }}{{- .Summary | markdownify -}}
{{ end -}}
</p>
{{ if .Params.list_image }}
{{ $img := .Params.list_image }}
{{ if (fileExists ( print "/static" $img )) }}
{{ with (imageConfig ( print "/static" $img )) }}
{{ $imageWidth := div .Width 3 }}
<img src='{{ $img }}' width='{{ $imageWidth }}' />
{{ end }}
{{ else }}
<img src='{{ $img }}'/>
{{ end }}
{{ end }}
{{ end }}
{{ else if (eq $type "functions") }}