Welcome to mirror list, hosted at ThFree Co, Russian Federation.

code.html « shortcodes « layouts - github.com/gohugoio/gohugoioTheme2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f218cc2fd212b8577d7106f29364a4d94debfa53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<div class="font-mono relative bg-steel-500 text-gray-400" id="{{.Get "file" | urlize}}">
	{{- with .Get "file" -}}
		<div class="filename san-serif text-sm inline-block leading-none pl-2 py-2">{{.}}</div>
	{{- end -}}

	{{ if ne (.Get "copy") "false" }}
		<button class="needs-js copy bg-accent-color-dark text-sm absolute top-0 right-0 leading-none hover-bg-primary-color-dark border-0 border-none text-white px-3 py-2" title="Copy this font-mono to your clipboard." data-clipboard-action="copy" aria-label="copy button">
		</button>
		{{/* Functionality located within filesaver.js The copy here is located in the css with .copy class so it can be replaced with JS on success */}}
	{{end}}
	<div class="code-copy-content nt3" {{with .Get "download"}}id="{{.}}"{{end}}>
		{{- .Inner -}}
	</div>

</div>