mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 23:38:53 +00:00
18 lines
640 B
HTML
18 lines
640 B
HTML
<div class="code" id="{{.Get "file" | urlize}}">
|
|
{{- with .Get "file" -}}
|
|
<div class="filename">{{.}}</div>
|
|
{{- end -}}
|
|
{{with .Get "download"}}
|
|
<button class="download-button" title="Download "{{.}}".">
|
|
<i class="icon-download"></i><span class="button-text">Download</span>
|
|
</button>
|
|
{{end}}
|
|
{{ if ne (.Get "copy") "false" }}
|
|
<button class="copy-button" title="Copy this code to your clipboard." data-clipboard-snippet>
|
|
<i class="icon-clipboard"></i><span class="button-text"> Copy</span>
|
|
</button>
|
|
{{end}}
|
|
<div class="code-copy-content" {{with .Get "download"}}id="{{.}}"{{end}}>
|
|
{{- .Inner -}}
|
|
</div>
|
|
</div> |