diff options
author | 2016-09-30 15:34:03 -0700 | |
---|---|---|
committer | 2016-09-30 15:34:03 -0700 | |
commit | cba441714f357b9b25d5c0cacbfb2e376bbbe679 (patch) | |
tree | 2db58d65d94946f0c5ed6b07162bdcb648a255ca /templates | |
parent | 4754d5ec7e5d162585f2ebdb259132330e9fdf55 (diff) | |
download | sally-cba441714f357b9b25d5c0cacbfb2e376bbbe679.tar.gz sally-cba441714f357b9b25d5c0cacbfb2e376bbbe679.tar.zst sally-cba441714f357b9b25d5c0cacbfb2e376bbbe679.zip |
Starting point (#1)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.tpl | 10 | ||||
-rw-r--r-- | templates/package.tpl | 11 |
2 files changed, 21 insertions, 0 deletions
diff --git a/templates/index.tpl b/templates/index.tpl new file mode 100644 index 0000000..bfe01fb --- /dev/null +++ b/templates/index.tpl @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html> + <body> + <ul> + {{ range $key, $value := .Packages }} + <li>{{ $key }} - {{ $value.Repo }}</li> + {{ end }} + </ul> + </body> +</html> diff --git a/templates/package.tpl b/templates/package.tpl new file mode 100644 index 0000000..38deaf3 --- /dev/null +++ b/templates/package.tpl @@ -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> |