diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 37 | ||||
-rw-r--r-- | templates/package.html | 11 |
2 files changed, 48 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> diff --git a/templates/package.html b/templates/package.html new file mode 100644 index 0000000..38deaf3 --- /dev/null +++ b/templates/package.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="go-import" content="{{ .CanonicalURL }} git https://{{ .Repo }}"> + <meta name="go-source" content="{{ .CanonicalURL }} https://{{ .Repo }} https://{{ .Repo }}/tree/master{/dir} https://{{ .Repo }}/tree/master{/dir}/{file}#L{line}"> + <meta http-equiv="refresh" content="0; url={{ .GodocURL }}"> + </head> + <body> + Nothing to see here. Please <a href="{{ .GodocURL }}">move along</a>. + </body> +</html> |