Files
blowfish/layouts/_default/_markup/render-codeblock.html
2025-12-18 02:38:31 +08:00

11 lines
268 B
HTML

{{- $title := or .Attributes.title "" -}}
{{- $lang := or .Type "text" -}}
<div class="highlight-wrapper">
{{- with $title -}}
<div class="codeblock-title">
{{- $title -}}
</div>
{{- end -}}
{{- transform.Highlight .Inner $lang .Options -}}
</div>