diff --git a/layouts/shortcodes/code-toggle.html b/layouts/shortcodes/code-toggle.html index 6d4246052..113d85a1f 100644 --- a/layouts/shortcodes/code-toggle.html +++ b/layouts/shortcodes/code-toggle.html @@ -1,41 +1,108 @@ -{{ $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") }} -