From ddf2aefa09e81f0efd1dfcd3c10615ab55c6920d Mon Sep 17 00:00:00 2001 From: Feuerfuchs Date: Sat, 16 Nov 2019 01:39:33 +0100 Subject: Fixed some issues with Gemini --- template.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'template.go') diff --git a/template.go b/template.go index b7d1b1f..6a9c6fe 100644 --- a/template.go +++ b/template.go @@ -58,6 +58,9 @@ var tpltext = ` {{- if ne (len $uriParts) 0 -}} / {{- end -}} + {{- if and (eq $page.Protocol "gopher") (eq (len $uriParts) 1) -}} + {{- $uriLast = $uriLast | trimLeftChar -}} + {{- end -}} {{ $uriLast }}
-- cgit v1.2.3-54-g00ecf