Switched to <code> field

This commit is contained in:
Thomas Smith 2022-10-17 14:50:35 -04:00
parent f0d529f78b
commit 069a7e9c57
2 changed files with 2 additions and 5 deletions

View file

@ -21,17 +21,14 @@
</div>
</section>
{{ range where $.Site.Data.packages "name" .Title }}
<hr>
<!-- The text field -->
<input class="one-liner" type="text" value="$ sh <(curl tea.xyz) install {{- .Title -}}" id="myInput">
<code class="one-liner" data-lang="sh">$ sh <(curl tea.xyz) install</code>
<!-- The button used to copy the text -->
<button class="clipboard-copy" onclick="myFunction()"><i class="icon-download-arrow"></i></button>
{{end}}
<style>
.one-liner{

View file

@ -14,7 +14,7 @@
<hr>
<!-- The text field -->
<input class="one-liner" type="text" value="$ sh <(curl tea.xyz) ci" id="myInput">
<code class="one-liner" data-lang="sh">$ sh <(curl tea.xyz) install</code>
<!-- The button used to copy the text -->
<button class="clipboard-copy" onclick="myFunction()"><i class="icon-download-arrow"></i></button>