Skip to content

Commit

Permalink
fix: append .git to go-import path
Browse files Browse the repository at this point in the history
  • Loading branch information
mlcdf committed Feb 20, 2022
1 parent ea437c2 commit 05b833d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions templates/repo.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="go-import" content="{{ .Config.Domain }}{{ .Path }} git {{ .Repo }}">
<meta name="go-source" content="{{ .Config.Domain }}{{ .Path }} _ {{ .Repo }}tree/master{/dir} {{ .Repo.URL }}blob/master{/dir}/{file}#L{line}">
<meta name="go-import" content="{{ .Config.Domain }}{{ .Path }} git {{ .Repo }}.git">
<meta name="go-source"
content="{{ .Config.Domain }}{{ .Path }} _ {{ .Repo }}tree/master{/dir} {{ .Repo.URL }}blob/master{/dir}/{file}#L{line}">
<meta http-equiv="refresh" content="0; url=https://pkg.go.dev/{{ .Config.Domain }}{{ .Path }}">
<title>{{ .Config.Domain }}{{ .Path }}</title>
</head>

<body>
Nothing to see here; <a href='https://pkg.go.dev/{{ .Config.Domain }}{{ .Path }}'>move along</a>.
</body>

</html>

0 comments on commit 05b833d

Please sign in to comment.