{{ $file := .Get "file" }} {{ $code := "" }} {{ with .Get "config" }} {{ $file = $file | default "config" }} {{ $sections := (split . ".") }} {{ $configSection := index $.Site.Data.docs.config $sections }} {{ $code = dict $sections $configSection }} {{ if $.Get "skipHeader"}} {{ $code = $configSection }} {{ end }} {{ else }} {{ $code = $.Inner }} {{ end }} {{ $langs := (slice "yaml" "toml" "json") }}