From 219dd0c4d517947121bcbf0f6a0e49f7b0fb0ded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 16 May 2017 10:53:40 +0300 Subject: [PATCH] tmplimpl: Add support for ellipsed paginator Fixes #3466 --- tpl/tplimpl/template_embedded.go | 67 +++++++++++++++++++------------- 1 file changed, 41 insertions(+), 26 deletions(-) diff --git a/tpl/tplimpl/template_embedded.go b/tpl/tplimpl/template_embedded.go index c02e6569a52..fb5ce71e900 100644 --- a/tpl/tplimpl/template_embedded.go +++ b/tpl/tplimpl/template_embedded.go @@ -123,32 +123,47 @@ func (t *templateHandler) embedTemplates() { `) t.addInternalTemplate("", "pagination.html", `{{ $pag := $.Paginator }} - {{ if gt $pag.TotalPages 1 }} - - {{ end }}`) +{{ if gt $pag.TotalPages 1 }} + +{{ end }}`) t.addInternalTemplate("", "disqus.html", `{{ if .Site.DisqusShortname }}