mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
dd6d320654
* BREAKING CHANGE: refactor with Dart Sass (supplement to #741) * chore: update .gitignore to include .vercel and .env*.local * CI: add build script for Hugo site deployment on Vercel * CI: update build script for Hugo site deployment on Vercel * refactor: update SCSS layout styles and introduce page-style mixin * refactor: reorganize SCSS files and improve layout structure * refactor: rename copy button classes and update related styles
13 lines
507 B
HTML
13 lines
507 B
HTML
{{- /*
|
|
Copy button for diagram-like plugins.
|
|
@param {String} [.Label] aria label text for copy action
|
|
*/ -}}
|
|
|
|
{{- $label := .Label | default "Copy Diagram code" -}}
|
|
{{- $copyToClipboard := T "assets.copyToClipboard" -}}
|
|
{{- $copiedText := T "assets.copiedText" -}}
|
|
|
|
<button type="button" class="copy-icon-btn" aria-label="{{ $label }}" title="{{ $copyToClipboard }}" data-copied-text="{{ $copiedText }}">
|
|
{{- dict "Class" "fa-regular fa-clone fa-width-auto" | partial "plugin/icon.html" -}}
|
|
</button>
|