mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 13:25:57 -06:00
BBaoVanC
80f5994d96
- Use JS to get it directly from the code block instead of needing a separate `pre.code-raw` to get it from. That makes it possible to: - bashsession: Don't copy prompt or command output
16 lines
391 B
HTML
16 lines
391 B
HTML
{{ $type := "text" }}
|
|
{{ with .Type }}
|
|
{{ $type = . }}
|
|
{{ end }}
|
|
<div class="code-block">
|
|
<div class="code-header">
|
|
<span class="code-type">{{ $type }}</span>
|
|
<a class="code-copy-button">
|
|
{{ i18n "copy_to_clipboard" }}
|
|
</a>
|
|
</div>
|
|
|
|
{{/* a div.highlight is already created by highlight function */}}
|
|
{{ highlight .Inner $type }}
|
|
</div>
|