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>
</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>