diff options
author | 无闻 <u@gogs.io> | 2015-10-31 11:45:40 -0400 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2015-10-31 11:45:40 -0400 |
commit | 659bd29bc5d5ef6142f348bd6899744350743da9 (patch) | |
tree | f50a256a11ebd1ec3ef887aa3de4ac67f5c142b5 /templates/ng/base/head.tmpl | |
parent | 91c9069c4d674615a306cc7d5317aae03eecb002 (diff) | |
parent | 4323a89c0354e4f25dbffc4b77c1e3f9ba68ba24 (diff) | |
download | gitea-659bd29bc5d5ef6142f348bd6899744350743da9.tar.gz gitea-659bd29bc5d5ef6142f348bd6899744350743da9.zip |
Merge pull request #1863 from nathan7/go-source-meta
Add go-source directive to repo pages
Diffstat (limited to 'templates/ng/base/head.tmpl')
-rw-r--r-- | templates/ng/base/head.tmpl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/ng/base/head.tmpl b/templates/ng/base/head.tmpl index 2a13036ec4..dbf801c66b 100644 --- a/templates/ng/base/head.tmpl +++ b/templates/ng/base/head.tmpl @@ -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" /> |