{{- $class := .Attributes.class | default "" -}} {{- $filename := .Attributes.filename | default "" -}} {{- $lang := .Attributes.lang | default .Type -}}
{{ partial "components/codeblock" (dict "filename" $filename "lang" $lang "content" .Inner "options" .Options) }} {{- if or (eq site.Params.highlight.copy.enable nil) (site.Params.highlight.copy.enable) }} {{- partialCached "components/codeblock-copy-button" (dict "filename" $filename) $filename }} {{ end }}