mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-12 08:36:30 -04:00
Remove blank lines from code-toggle output (#1564)
This commit is contained in:
parent
7cf058bfdd
commit
2d0f38978b
@ -29,7 +29,7 @@
|
|||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
{{ range $langs }}
|
{{ range $langs }}
|
||||||
<div data-pane="{{ . }}" class="code-copy-content nt3 tab-pane {{ cond (eq . "yaml") "active" ""}}">
|
<div data-pane="{{ . }}" class="code-copy-content nt3 tab-pane {{ cond (eq . "yaml") "active" ""}}">
|
||||||
{{ highlight ($code | transform.Remarshal . | safeHTML) . ""}}
|
{{ highlight ($code | transform.Remarshal . | replaceRE `\n+` "\n" | safeHTML) . "" }}
|
||||||
</div>
|
</div>
|
||||||
{{ if ne ($.Get "copy") "false" }}
|
{{ if ne ($.Get "copy") "false" }}
|
||||||
<button class="needs-js copy copy-toggle bg-accent-color-dark f6 absolute top-0 right-0 lh-solid hover-bg-primary-color-dark bn white ph3 pv2" title="Copy this code to your clipboard." data-clipboard-action="copy" aria-label="copy button"></button>
|
<button class="needs-js copy copy-toggle bg-accent-color-dark f6 absolute top-0 right-0 lh-solid hover-bg-primary-color-dark bn white ph3 pv2" title="Copy this code to your clipboard." data-clipboard-action="copy" aria-label="copy button"></button>
|
||||||
@ -37,5 +37,5 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user