Added copy-clipboard to package detail pages

This commit is contained in:
Thomas Smith 2022-10-17 12:47:08 -04:00
parent 578d0c02af
commit bd342f54b4
2 changed files with 3 additions and 2 deletions

View file

@ -21,7 +21,7 @@
</div>
</section>
{{- partial "full-width-cta-split.html" -}}
{{- partial "clipboard-copy.html" -}}
<style>

View file

@ -1,7 +1,8 @@
<hr>
<!-- The text field -->
<input class="one-liner" type="text" value="$ sh <(curl tea.xyz) ci" id="myInput">
<input class="one-liner" type="text" value="$ sh <(curl tea.xyz) install {{- .Title -}}" id="myInput">
{{ range where $.Site.Data.packages "name" .Title }}
<!-- The button used to copy the text -->
<button class="clipboard-copy" onclick="myFunction()"><i class="icon-download-arrow"></i></button>