aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..802996c
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css" />
+ </head>
+ <body>
+ <div class="container">
+ <div class="row">
+ <table class="u-full-width">
+ <thead>
+ <tr>
+ <th>Package</th>
+ <th>Source</th>
+ <th>Documentation</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{ range $key, $value := .Packages }}
+ {{ $importPath := printf "%v/%v" $.URL $key }}
+ <tr>
+ <td>{{ $importPath }}</td>
+ <td>
+ <a href="//{{ $value.Repo }}">{{ $value.Repo }}</a>
+ </td>
+ <td>
+ <a href="//godoc.org/{{ $importPath }}">
+ <img src="//godoc.org/{{ $importPath }}?status.svg" alt="GoDoc" />
+ </a>
+ </td>
+ </tr>
+ {{ end }}
+ </tbody>
+ </table>
+ </div>
+ </div>
+ </body>
+</html>