mirror of https://github.com/docker/docs.git
hugo: use "text" as a fallback lang for codeblocks
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
85688fa3e5
commit
4267ce33e4
|
|
@ -10,8 +10,8 @@
|
|||
<span :class="{ 'group-hover:block' : !copying }" class="hidden icon-svg">{{ partialCached "icon" "content_copy" "content_copy" }}</span>
|
||||
<span :class="{ 'group-hover:block' : copying }" class="hidden icon-svg">{{ partialCached "icon" "check_circle" "check_circle" }}</span>
|
||||
</button>
|
||||
{{ $result := transform.HighlightCodeBlock . }}
|
||||
{{ $lang := .Type | default "text" }}
|
||||
<div class="syntax-light dark:syntax-dark">
|
||||
{{ $result.Wrapped }}
|
||||
{{ transform.Highlight .Inner $lang .Options }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue