feat(gitbrowse): add support for git.sr.ht (#1297)

Simply upstreaming this from my own config.

Signed-off-by: Tristan Partin <tristan@partin.io>
This commit is contained in:
Tristan Partin 2025-02-19 08:15:21 -06:00 committed by GitHub
parent c7bdade05f
commit a3b47e5202
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,6 +66,12 @@ local defaults = {
permalink = "/src/{commit}/{file}#lines-{line_start}-L{line_end}",
commit = "/commits/{commit}",
},
["git.sr.ht"] = {
branch = "/tree/{branch}",
file = "/tree/{branch}/item/{file}",
permalink = "/tree/{commit}/item/{file}#L{line_start}",
commit = "/commit/{commit}",
},
},
}