1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Add go-source directive to repo pages

This makes Gogs repos work with godoc.org: https://github.com/golang/gddo/wiki/Source-Code-Links
This commit is contained in:
Nathan Zadoks
2015-10-30 13:52:36 +01:00
parent 102b675f96
commit 4323a89c03
3 changed files with 7 additions and 1 deletions

View File

@@ -8,7 +8,10 @@
<meta name="keywords" content="go, git, self-hosted, gogs">
<meta name="referrer" content="no-referrer" />
<meta name="_csrf" content="{{.CsrfToken}}" />
{{if .GoGetImport}}<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">{{end}}
{{if .GoGetImport}}
<meta name="go-import" content="{{.GoGetImport}} git {{.CloneLink.HTTPS}}">
<meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}">
{{end}}
<link rel="shortcut icon" href="{{AppSubUrl}}/img/favicon.png" />