diff options
author | 2018-12-31 12:31:52 -0800 | |
---|---|---|
committer | 2019-01-03 11:48:28 -0800 | |
commit | 086cdf873f5fb22f858476a035883a945503bd4a (patch) | |
tree | c0bda7f0e0b46a11b0be4ab72f51e2a7bc318a2a /templates | |
parent | fa1cf198a7c22a0f7537c565e36a19567bbde0d8 (diff) | |
download | sally-086cdf873f5fb22f858476a035883a945503bd4a.tar.gz sally-086cdf873f5fb22f858476a035883a945503bd4a.tar.zst sally-086cdf873f5fb22f858476a035883a945503bd4a.zip |
Add minimal styling
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> |