Merge pull request #160 from teaxyz/bugfix/cli-copy-pattern

fix: tea install code copy should include maintainer name if exists
This commit is contained in:
Neil 2022-11-02 08:52:28 +08:00 committed by GitHub
commit 4a2ebf9fbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,13 +35,15 @@
</div> </div>
</section> </section>
{{- partial "clipboard-copy.html" -}} {{ range where $.Site.Data.packages "name" .Title }}
{{- partial "clipboard-copy.html" -}}
<script type="text/javascript"> <script type="text/javascript">
document.getElementById("shortcodeCopy").value = "sh <(curl tea.xyz) +{{- .full_name -}}";
</script>
{{ end }}
document.getElementById("shortcodeCopy").value = "sh <(curl tea.xyz) +{{- .Params.maintainer -}}/{{- .Title -}}";
</script>
<style> <style>