aboutsummaryrefslogtreecommitdiffstats
path: root/template.go
diff options
context:
space:
mode:
authorFeuerfuchs <git@feuerfuchs.dev>2019-11-16 01:39:33 +0100
committerFeuerfuchs <git@feuerfuchs.dev>2019-11-16 01:39:33 +0100
commitddf2aefa09e81f0efd1dfcd3c10615ab55c6920d (patch)
treeb0403855e643c4b5bd9d00f56c10ccd9af7c5361 /template.go
parentInitial Gemini support (diff)
downloadgopherproxy-ddf2aefa09e81f0efd1dfcd3c10615ab55c6920d.tar.gz
gopherproxy-ddf2aefa09e81f0efd1dfcd3c10615ab55c6920d.tar.bz2
gopherproxy-ddf2aefa09e81f0efd1dfcd3c10615ab55c6920d.zip
Fixed some issues with Gemini
Diffstat (limited to 'template.go')
-rw-r--r--template.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/template.go b/template.go
index b7d1b1f..6a9c6fe 100644
--- a/template.go
+++ b/template.go
@@ -58,6 +58,9 @@ var tpltext = `<!doctype html>
58 {{- if ne (len $uriParts) 0 -}} 58 {{- if ne (len $uriParts) 0 -}}
59 <span class="location__slash">/</span> 59 <span class="location__slash">/</span>
60 {{- end -}} 60 {{- end -}}
61 {{- if and (eq $page.Protocol "gopher") (eq (len $uriParts) 1) -}}
62 {{- $uriLast = $uriLast | trimLeftChar -}}
63 {{- end -}}
61 <span class="location__uripart">{{ $uriLast }}</span> 64 <span class="location__uripart">{{ $uriLast }}</span>
62 </div> 65 </div>
63 <div class="actions"> 66 <div class="actions">