2023-01-22 00:09:34 -06:00
|
|
|
{{ $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 00:09:34 -06:00
|
|
|
<span class="code-type">{{ $type }}</span>
|
2023-01-22 16:22:51 -06:00
|
|
|
<a href="javascript:void(0)" class="code-copy-button">
|
2023-01-20 17:14:18 -06:00
|
|
|
{{ i18n "copy_to_clipboard" }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
2023-01-22 00:09:34 -06:00
|
|
|
{{/* a div.highlight is already created by highlight function */}}
|
|
|
|
{{ highlight .Inner $type }}
|
2023-01-20 16:25:28 -06:00
|
|
|
</div>
|