mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-10-26 05:32:58 +00:00
feat(codeblock): add title support
This commit is contained in:
5 files changed
+73
-36
No files matched your search
@@ -0,0 +1,10 @@
|
||||
{{- $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>
|
||||
Reference in new issue
Block a user