From f75f90079a6f2a239c8186faba5db5dbe6e36cb6 Mon Sep 17 00:00:00 2001 From: Raoul Date: Wed, 30 Jun 2021 03:34:45 +0200 Subject: [PATCH] Fix tab selection of disabled items in internal pagination template --- hugolib/embedded_templates_test.go | 2 +- tpl/tplimpl/embedded/templates.autogen.go | 8 ++++---- tpl/tplimpl/embedded/templates/pagination.html | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/hugolib/embedded_templates_test.go b/hugolib/embedded_templates_test.go index f0fc9cfd..5e76c0ff 100644 --- a/hugolib/embedded_templates_test.go +++ b/hugolib/embedded_templates_test.go @@ -152,7 +152,7 @@ func TestEmbeddedPaginationTemplate(t *testing.T) { b.AssertFileContent("public/index.html", expectedOutput) } - expectedOutputDefaultFormat := "Pager 1\n " + expectedOutputDefaultFormat := "Pager 1\n " expectedOutputTerseFormat := "Pager 1\n " variant := `{{ template "_internal/pagination.html" . }}` diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index b906f10d..8e691af4 100644 --- a/tpl/tplimpl/embedded/templates.autogen.go +++ b/tpl/tplimpl/embedded/templates.autogen.go @@ -290,7 +290,7 @@ if (!doNotTrack) { {{- else }}
  • - +
  • {{- end }} {{- end }} @@ -301,7 +301,7 @@ if (!doNotTrack) { {{- else }}
  • - +
  • {{- end }} @@ -330,7 +330,7 @@ if (!doNotTrack) { {{- else }}
  • - +
  • {{- end }} @@ -341,7 +341,7 @@ if (!doNotTrack) { {{- else }}
  • - +
  • {{- end }} {{- end }} diff --git a/tpl/tplimpl/embedded/templates/pagination.html b/tpl/tplimpl/embedded/templates/pagination.html index b3535ffc..40894a5c 100644 --- a/tpl/tplimpl/embedded/templates/pagination.html +++ b/tpl/tplimpl/embedded/templates/pagination.html @@ -40,7 +40,7 @@ {{- else }}
  • - +
  • {{- end }} {{- end }} @@ -51,7 +51,7 @@ {{- else }}
  • - +
  • {{- end }} @@ -80,7 +80,7 @@ {{- else }}
  • - +
  • {{- end }} @@ -91,7 +91,7 @@ {{- else }}
  • - +
  • {{- end }} {{- end }}