Add go-source meta tag godoc.org doesn't recognize Go repositories on "services not known" to it without go-source. sourcehut apparently is one of these services. See https://github.com/golang/gddo/wiki/Source-Code-Links
1 files changed, 4 insertions(+), 0 deletions(-) M gitsrht/templates/repo.html
M gitsrht/templates/repo.html => gitsrht/templates/repo.html +4 -0
@@ 6,6 6,10 @@ {# Man, this is lame #} <meta name="go-import" content="{{domain}}/{{owner.canonical_name}}/{{repo.name}} git {{(repo | clone_urls)[0]}}"> <meta name="go-source" content="{{domain}}/{{owner.canonical_name}}/{{repo.name}} {{(repo | clone_urls)[0]}} {{(repo | clone_urls)[0]}}/tree/master{/dir} {{(repo | clone_urls)[0]}}/tree/master{/dir}/{file}#L{line}"> {% endblock %} {% block body %} <div class="header-tabbed">