{{ $contents := trim .Inner "\n" }} {{ $file := .Get "file" }} {{ $syntax := .Get "syntax" }} {{ $codeLang := "" }} {{ $suffix := findRE "(\\.[^.]+)$" $file 1 }} {{ $hl_lines := $.Params.hl_lines | default "" }} {{ with $suffix }} {{ $codeLang = (index . 0 | strings.TrimPrefix ".") }} {{ with $syntax }} {{ $codeLang = . }} {{ end}} {{ end }} {{ with .Get "codeLang" }}{{ $codeLang = . }}{{ end }}
{{- with $file -}}
{{- with $codeLang -}} {{- partialCached "fontawesome.html" . . -}} {{- end -}} {{- . -}}
{{- end -}} {{ with $codeLang }} {{- highlight $contents . "" -}} {{ else }}
{{- $contents | string -}}
{{ end }}