diff --git a/lib/godoc/package.html b/lib/godoc/package.html
index 158be24804..ae574827d6 100644
--- a/lib/godoc/package.html
+++ b/lib/godoc/package.html
@@ -37,10 +37,32 @@
{{example_html "" $.Examples $.FSet}}
+
+ {{if $.Examples}}
+
+ {{end}}
- Index
+
+
+
+
+
+
+
-
+
{{if .Consts}}
- Constants
@@ -67,16 +89,8 @@
{{if .Bugs}}
- Bugs
{{end}}
-
-
- {{if $.Examples}}
-
Examples
-
- {{range $.Examples}}
- - {{example_name .Name}}
- {{end}}
- {{end}}
+
{{with .Filenames}}
Package files
@@ -88,6 +102,8 @@
{{end}}
+
+
{{with .Consts}}
Constants