fix: copy package fullname if maintainer exists

This commit is contained in:
neil 2022-11-02 07:58:08 +08:00
parent e5aa14b22c
commit 7936c8850d

View file

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