modify layout of codenew shortcode

This commit is contained in:
Karen Bradshaw
2020-08-07 16:48:43 -04:00
parent 6b784ad586
commit 88856e6c01
+8 -17
View File
@@ -18,21 +18,12 @@
{{ errorf "[%s] %q not found in %q" site.Language.Lang $fileDir.File $bundlePath }} {{ errorf "[%s] %q not found in %q" site.Language.Lang $fileDir.File $bundlePath }}
{{ end }} {{ end }}
{{ with $.Scratch.Get "content" }} {{ with $.Scratch.Get "content" }}
<table class="includecode" id="{{ $file | anchorize }}"> <div class="highlight">
<thead> <div class="includecode" style="text-align: right" id="{{- $file | anchorize -}}">
<tr> {{- with $ghlink -}}<a href="{{ . }}" download="{{ $file }}">{{- end -}}
<th>
{{ with $ghlink }}<a href="{{ . }}" download="{{ $file }}">{{ end }}
<code>{{ $file }}</code> <code>{{ $file }}</code>
{{ if $ghlink }}</a>{{ end }} {{ if $ghlink }}</a>{{ end }}<img src="{{ "images/copycode.svg" | relURL }}" style="max-height:24px; cursor: pointer" onclick="copyCode('{{ $file | anchorize }}')" title="Copy {{ $file }} to clipboard">
<img src="{{ "images/copycode.svg" | relURL }}" style="max-height:24px; cursor: pointer" onclick="copyCode('{{ $file | anchorize }}')" title="Copy {{ $file }} to clipboard"> </div>
</th> {{ highlight . $codelang "" }}
</tr> </div>
</thead> {{- end -}}
<tbody>
<tr>
<td>{{ highlight . $codelang "" }} </td>
</tr>
</tbody>
</table>
{{ end }}