aboutsummaryrefslogtreecommitdiff
path: root/templates/package.html
diff options
context:
space:
mode:
authorGravatar Jan-Philipp Benecke <github@bnck.me> 2021-05-19 00:49:33 +0200
committerGravatar GitHub <noreply@github.com> 2021-05-18 15:49:33 -0700
commit4f8f13fd76f065e49efdb3aa1a7504ffcafbf9a8 (patch)
treef68612e4882f707840ef0a1bc0d14477dfcb1c06 /templates/package.html
parentb627e361379b89802df4930abbc64ce26bd8f323 (diff)
downloadsally-4f8f13fd76f065e49efdb3aa1a7504ffcafbf9a8.tar.gz
sally-4f8f13fd76f065e49efdb3aa1a7504ffcafbf9a8.tar.zst
sally-4f8f13fd76f065e49efdb3aa1a7504ffcafbf9a8.zip
Allow setting branch (#46)
Support specifying the branch from which source will be served in the YAML configuration.
Diffstat (limited to 'templates/package.html')
-rw-r--r--templates/package.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/package.html b/templates/package.html
index 38deaf3..293b392 100644
--- a/templates/package.html
+++ b/templates/package.html
@@ -2,7 +2,7 @@
<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 name="go-source" content="{{ .CanonicalURL }} https://{{ .Repo }} https://{{ .Repo }}/tree/{{ .Branch }}{/dir} https://{{ .Repo }}/tree/{{ .Branch }}{/dir}/{file}#L{line}">
<meta http-equiv="refresh" content="0; url={{ .GodocURL }}">
</head>
<body>