rimarima/themes/hugo-liftoff/layouts/_default/_markup/render-codeblock.html
Adrian Amaglio c09f092db4 init
2023-11-17 10:54:41 +01:00

6 lines
224 B
HTML

{{ $lang := .Attributes.lang | default .Type }}
{{ if transform.CanHighlight $lang }}
<span class="code-language">{{ $lang }}</span>{{ highlight .Inner $lang }}
{{ else }}
<pre><code>{{ .Inner }}</code></pre>
{{ end }}