diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo_home.gmi | 2 | ||||
-rw-r--r-- | templates/repo_home.gophermap | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/templates/repo_home.gmi b/templates/repo_home.gmi index a2af514..9d62f3c 100644 --- a/templates/repo_home.gmi +++ b/templates/repo_home.gmi @@ -22,7 +22,7 @@ ## {{.Filename}} ```{{.Filename}} contents -{{.EscapedContents}} +{{.GeminiEscapedContents}} ``` {{ end -}} {{ end }} 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 -}} .
|