From: Bjørn Erik Pedersen Date: Tue, 16 May 2017 07:53:40 +0000 (+0300) Subject: tmplimpl: Add support for ellipsed paginator X-Git-Tag: v0.21~25 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b6ea492b;p=brevno-suite%2Fhugo tmplimpl: Add support for ellipsed paginator Fixes #3466 --- diff --git a/tpl/tplimpl/template_embedded.go b/tpl/tplimpl/template_embedded.go index c02e6569..fb5ce71e 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 }}