diff options
Diffstat (limited to 'lib/godoc/package.html')
-rw-r--r-- | lib/godoc/package.html | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/godoc/package.html b/lib/godoc/package.html index fdebbf5d9..848e68df7 100644 --- a/lib/godoc/package.html +++ b/lib/godoc/package.html @@ -70,7 +70,7 @@ <p> <span style="font-size:90%"> {{range .}} - <a href="/{{.|srcLink}}">{{.|filename|html}}</a> + <a href="{{.|srcLink|html}}">{{.|filename|html}}</a> {{end}} </span> </p> @@ -93,7 +93,7 @@ {{range .Funcs}} {{/* Name is a string - no need for FSet */}} {{$name_html := html .Name}} - <h2 id="{{$name_html}}">func <a href="/{{posLink_url .Decl $.FSet}}">{{$name_html}}</a></h2> + <h2 id="{{$name_html}}">func <a href="{{posLink_url .Decl $.FSet}}">{{$name_html}}</a></h2> <pre>{{node_html .Decl $.FSet}}</pre> {{comment_html .Doc}} {{example_html .Name $.Examples $.FSet}} @@ -101,7 +101,7 @@ {{range .Types}} {{$tname := .Name}} {{$tname_html := html .Name}} - <h2 id="{{$tname_html}}">type <a href="/{{posLink_url .Decl $.FSet}}">{{$tname_html}}</a></h2> + <h2 id="{{$tname_html}}">type <a href="{{posLink_url .Decl $.FSet}}">{{$tname_html}}</a></h2> <pre>{{node_html .Decl $.FSet}}</pre> {{comment_html .Doc}} @@ -119,7 +119,7 @@ {{range .Funcs}} {{$name_html := html .Name}} - <h3 id="{{$name_html}}">func <a href="/{{posLink_url .Decl $.FSet}}">{{$name_html}}</a></h3> + <h3 id="{{$name_html}}">func <a href="{{posLink_url .Decl $.FSet}}">{{$name_html}}</a></h3> <pre>{{node_html .Decl $.FSet}}</pre> {{comment_html .Doc}} {{example_html .Name $.Examples $.FSet}} @@ -127,7 +127,7 @@ {{range .Methods}} {{$name_html := html .Name}} - <h3 id="{{$tname_html}}.{{$name_html}}">func ({{html .Recv}}) <a href="/{{posLink_url .Decl $.FSet}}">{{$name_html}}</a></h3> + <h3 id="{{$tname_html}}.{{$name_html}}">func ({{html .Recv}}) <a href="{{posLink_url .Decl $.FSet}}">{{$name_html}}</a></h3> <pre>{{node_html .Decl $.FSet}}</pre> {{comment_html .Doc}} {{$name := printf "%s_%s" $tname .Name}} @@ -163,7 +163,13 @@ {{with .Dirs}} {{/* DirList entries are numbers and strings - no need for FSet */}} - {{if $.PDoc}}<h2 id="subdirectories">Subdirectories</h2>{{end}} + {{if $.PDoc}} + <h2 id="subdirectories">Subdirectories</h2> + {{else}} + <div class="pkgGopher"> + <img class="gopher" src="/doc/gopher/pkg.png"/> + </div> + {{end}} <table class="dir"> <tr> <th>Name</th> |