From 48127bfcf5f77da8e7cc62dc507fe481242c1521 Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Thu, 24 Jan 2019 10:38:49 -0800 Subject: [PATCH] Modify providers shortcode (#497) * Modify providers shortcode Signed-off-by: lucperkins * Change table structure Signed-off-by: lucperkins --- website/layouts/shortcodes/providers.html | 37 ++++++++++++++++------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/website/layouts/shortcodes/providers.html b/website/layouts/shortcodes/providers.html index 976b67045..8db8e6665 100644 --- a/website/layouts/shortcodes/providers.html +++ b/website/layouts/shortcodes/providers.html @@ -1,11 +1,26 @@ -{{ $providers := site.Data.providers }} -
    - {{ range $providers }} - {{ $url := printf "https://github.com/virtual-kubelet/virtual-kubelet/tree/master/providers/%s" .tag }} -
  • - - {{ .name | markdownify }} - -
  • - {{ end }} -
+{{- $providers := .Site.Data.providers }} + + + {{ range $providers }} + {{ $name := .name | markdownify }} + {{ $pkgName := printf "github.com/virtual-kubelet/virtual-kubelet/providers/%s" .tag }} + {{ $pkgUrl := printf "https://github.com/virtual-kubelet/virtual-kubelet/tree/master/providers/%s" .tag }} + {{ $godocUrl := printf "https://godoc.org/%s" $pkgName }} + + + + + + {{ end }} + +
+ {{ $name }} + + + Docs + + + + GoDoc + +