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

14 lines
426 B
HTML
Raw Normal View History

2023-01-20 16:25:28 -06:00
<div class="code-block">
2023-01-20 17:14:18 -06:00
<div class="code-header">
<span class="code-type">{{ .Type }}</span>
<a class="code-copy-button">
{{ i18n "copy_to_clipboard" }}
</a>
</div>
2023-01-20 16:25:28 -06:00
{{/* a div.highlight is already created by highlight function */}}
{{ highlight .Inner .Type }}
2023-01-20 17:14:18 -06:00
{{/* for copy to clipboard */}}
<pre class="code-raw" style="display: none;">{{ .Inner }}</pre>
2023-01-20 16:25:28 -06:00
</div>