{{/* theaders: Table headers received as colTitles parameter */}} {{/* tkeys: Table row keys received as colKeys parameter */}} {{/* contentPath: Path to the YAML content to render as table, without the language prefix */}} {{/* class: CSS Class for the table */}} {{ $theaders := (split (.Get "columnTitles") "," ) }} {{ $tkeys := (split (.Get "columnKeys") "," ) }} {{ $contentPath := .Get "contentPath" }} {{ $class := .Get "class" }} {{ $YAMLContent := index site.Data (string site.Language) }} {{ range (split $contentPath "." ) }} {{ $YAMLContent = index $YAMLContent . }} {{ end }} {{ $tag_id := anchorize $contentPath }}
{{ . }} | {{ end }}
---|
{{ if eq . "name" }}
{{ index $option "name" }}
{{ else }}
{{ index $option . | markdownify }}
{{ end }}
|
{{ end }}