diff options
author | 2019-03-05 23:33:22 +0000 | |
---|---|---|
committer | 2019-03-05 15:33:22 -0800 | |
commit | 76224eba02cfb97b18c724d69440b1fc999fccd6 (patch) | |
tree | c3d3140dcb40ebb197827df4a5132e32e918b9e1 /templates | |
parent | e598b4a5dcbe7abf1815677cf0bf6a7983df7cc0 (diff) | |
download | sally-76224eba02cfb97b18c724d69440b1fc999fccd6.tar.gz sally-76224eba02cfb97b18c724d69440b1fc999fccd6.tar.zst sally-76224eba02cfb97b18c724d69440b1fc999fccd6.zip |
Support changing godoc instance (#38)
This adds the ability to change the godoc.org instance used by Sally to
link to documentation by providing a new `godoc` section in the
configuration.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html index 802996c..d322ef6 100644 --- a/templates/index.html +++ b/templates/index.html @@ -23,8 +23,8 @@ <a href="//{{ $value.Repo }}">{{ $value.Repo }}</a> </td> <td> - <a href="//godoc.org/{{ $importPath }}"> - <img src="//godoc.org/{{ $importPath }}?status.svg" alt="GoDoc" /> + <a href="//{{ $.Godoc.Host }}/{{ $importPath }}"> + <img src="//{{ $.Godoc.Host }}/{{ $importPath }}?status.svg" alt="GoDoc" /> </a> </td> </tr> |