aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/index.tpl10
-rw-r--r--templates/package.tpl11
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>