From ca1e46efb94e3f3d2c8482cb9434d2f38ffd2683 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 26 Jun 2018 11:31:17 +0200 Subject: [PATCH] tpl: Update internal pagination template to support Bootstrap 4 Fixes #4881 --- tpl/tplimpl/embedded/templates.autogen.go | 36 +++++++++++-------- .../embedded/templates/pagination.html | 33 ++++++++++------- 2 files changed, 42 insertions(+), 27 deletions(-) diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index 2bcb0dcd..525dff01 100644 --- a/tpl/tplimpl/embedded/templates.autogen.go +++ b/tpl/tplimpl/embedded/templates.autogen.go @@ -165,7 +165,8 @@ if (!doNotTrack) { {{ end }} -{{- end -}}`}, +{{- end -}} +`}, {`google_news.html`, `{{ if .IsPage }}{{ with .Params.news_keywords }} {{ end }}{{ end }}`}, @@ -214,15 +215,24 @@ if (!doNotTrack) { {{ with .Site.Social.facebook_admin }}{{ end }}`}, {`pagination.html`, `{{ $pag := $.Paginator }} {{ if gt $pag.TotalPages 1 }} + + diff --git a/tpl/tplimpl/embedded/templates/pagination.html b/tpl/tplimpl/embedded/templates/pagination.html index eeaf2fbd..7fc3b59f 100755 --- a/tpl/tplimpl/embedded/templates/pagination.html +++ b/tpl/tplimpl/embedded/templates/pagination.html @@ -1,14 +1,23 @@ {{ $pag := $.Paginator }} {{ if gt $pag.TotalPages 1 }} + + -- 2.30.2