From a7ce20fee62a52794bf8bf940d0fd1f4134158b1 Mon Sep 17 00:00:00 2001 From: tjpcc Date: Sun, 17 Sep 2023 16:35:13 -0600 Subject: protocol-aware README escaping --- templates/repo_home.gophermap | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'templates/repo_home.gophermap') diff --git a/templates/repo_home.gophermap b/templates/repo_home.gophermap index 17f06f7..2ab17c2 100644 --- a/templates/repo_home.gophermap +++ b/templates/repo_home.gophermap @@ -17,4 +17,8 @@ i {{.Selector}} {{.Host}} {{.Port}} i(no commits to show) {{$.Selector}} {{$.Host}} {{$.Port}} {{ end -}} {{ end -}} +i {{.Selector}} {{.Host}} {{.Port}} +{{ with .Repo.Readme .Ctx "HEAD" -}} +{{ .GopherEscapedContents $.Selector $.Host $.Port }} +{{ end -}} . -- cgit v1.2.3