bobatheme/layouts/_default/_markup/render-codeblock.html

16 lines
415 B
HTML
Raw Permalink Normal View History

{{ $type := "text" }}
{{ with .Type }}
{{ $type = . }}
{{ end }}
2023-01-20 16:25:28 -06:00
<div class="code-block">
2023-01-20 17:14:18 -06:00
<div class="code-header">
2023-01-22 20:01:33 -06:00
<pre class="code-type">{{ $type }}</pre>
<a href="javascript:void(0)" class="code-copy-button">
2023-01-20 17:14:18 -06:00
{{ i18n "copy_to_clipboard" }}
</a>
</div>
{{/* a div.highlight is already created by highlight function */}}
{{ highlight .Inner $type }}
2023-01-20 16:25:28 -06:00
</div>