From b7f957289a7847254b04f35d094ea72510bca53d Mon Sep 17 00:00:00 2001 From: Thomas Smith <49042513+tsmitty11@users.noreply.github.com> Date: Tue, 28 Feb 2023 00:12:20 -0500 Subject: [PATCH] Cleaner package detail page --- src/layouts/page/package-detail.html | 52 ++--- .../clipboard-copy-package-detail.html | 185 +++--------------- 2 files changed, 50 insertions(+), 187 deletions(-) diff --git a/src/layouts/page/package-detail.html b/src/layouts/page/package-detail.html index cf2eb49..239b6d4 100644 --- a/src/layouts/page/package-detail.html +++ b/src/layouts/page/package-detail.html @@ -11,20 +11,34 @@
-

{{- .Title -}}

+

{{- .Title -}}

{{ range where $.Site.Data.packages "name" .Title }} -

{{- .desc -}}

- {{ if not (eq .package_yml_url "#")}} - - - - {{end}} - {{ if not (eq .homepage "") }} - - - - {{end}} - {{ end }} +

{{- .desc -}}

+
+
+ {{ if not (eq .package_yml_url "#")}} + + + + {{end}} +
+
+ {{ if not (eq .homepage "") }} + + + + {{end}} + {{ end }} +
+
+
+
+ {{ range where $.Site.Data.packages "name" .Title }} + {{- partial "clipboard-copy-package-detail.html" . -}} + {{ end }} +

Copy the tea one-liner above into your terminal to install  {{- .Title -}}. tea will interpret the documentation and take care of any dependencies.

+
+
@@ -42,27 +56,15 @@ -
-
- Copy the tea one-liner below into your terminal to install  {{- .Title -}}. tea will interpret the documentation and take care of any dependencies. -
-
-{{ range where $.Site.Data.packages "name" .Title }} - {{- partial "clipboard-copy-package-detail.html" . -}} - -{{ end }} - +