diff --git a/config.toml b/config.toml
index 821d443c..836014d3 100644
--- a/config.toml
+++ b/config.toml
@@ -2,4 +2,4 @@
[module.hugoVersion]
extended = true
min = "0.87.0 "
- max = "0.106.0"
\ No newline at end of file
+ max = "0.107.0"
\ No newline at end of file
diff --git a/config/_default/params.toml b/config/_default/params.toml
index bad1d72c..641c6c1c 100644
--- a/config/_default/params.toml
+++ b/config/_default/params.toml
@@ -45,6 +45,7 @@ enableCodeCopy = true
showHero = true
heroStyle = "basic" # valid options: basic, big, background
layoutBackgroundBlur = false # only used when heroStyle equals background
+ layoutBackgroundHeaderSpace = true # only used when heroStyle equals background
showBreadcrumbs = true
showDraftLabel = true
showEdit = true
@@ -65,6 +66,7 @@ enableCodeCopy = true
[list]
#showHero = true
#heroStyle = "background" # valid options: basic, big, background
+ #layoutBackgroundHeaderSpace = true # only used when heroStyle equals background
showBreadcrumbs = false
showSummary = false
#showViews = true
diff --git a/exampleSite/config/_default/menus.en.toml b/exampleSite/config/_default/menus.en.toml
index 3b71ca0c..fcfddb07 100644
--- a/exampleSite/config/_default/menus.en.toml
+++ b/exampleSite/config/_default/menus.en.toml
@@ -35,7 +35,10 @@
url = "http://tee.pub/lic/qwSlWVBL5zc"
weight = 50
-
+#[[main]]
+# name = "Test"
+# pageRef = "pagTest"
+# weight = 1000
[[main]]
identifier = "twitter"
diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml
index d713fb3b..185fd349 100644
--- a/exampleSite/config/_default/params.toml
+++ b/exampleSite/config/_default/params.toml
@@ -65,6 +65,7 @@ mainSections = ["docs"]
[list]
showHero = true
heroStyle = "background" # valid options: basic, big, background
+ layoutBackgroundHeaderSpace = false
showBreadcrumbs = false
showSummary = false
showViews = true
diff --git a/exampleSite/content/docs/configuration/index.md b/exampleSite/content/docs/configuration/index.md
index 717cd5b5..532ab37a 100644
--- a/exampleSite/content/docs/configuration/index.md
+++ b/exampleSite/content/docs/configuration/index.md
@@ -161,6 +161,7 @@ Many of the article defaults here can be overridden on a per article basis by sp
| `article.showHero` | `false` | Whether the thumbnail image will be shown as a hero image within each article page. |
| `article.heroStyle` | _Not set_ | Style to display the hero image, valid options are: `basic`, `big`, `background`. |
| `article.layoutBackgroundBlur` | `false` | Makes the background image in the background article heroStyle blur with the scroll |
+| `article.layoutBackgroundHeaderSpace` | `true` | Add space between the header and the body. |
| `article.showBreadcrumbs` | `false` | Whether or not breadcrumbs are displayed in the article header. |
| `article.showDraftLabel` | `true` | Whether or not the draft indicator is shown next to articles when site is built with `--buildDrafts`. |
| `article.showEdit` | `false` | Whether or not the link to edit the article content should be displayed. |
@@ -180,6 +181,7 @@ Many of the article defaults here can be overridden on a per article basis by sp
| `list.showHero` | `false` | Whether the thumbnail image will be shown as a hero image within each list page. |
| `list.heroStyle` | _Not set_ | Style to display the hero image, valid options are: `basic`, `big`, `background`. |
| `list.showBreadcrumbs` | `false` | Whether or not breadcrumbs are displayed in the header on list pages. |
+| `list.layoutBackgroundHeaderSpace` | `true` | Add space between the header and the body. |
| `list.showTableOfContents` | `false` | Whether or not the table of contents is displayed on list pages. |
| `list.showSummary` | `false` | Whether or not article summaries are displayed on list pages. If a summary is not provided in the [front matter]({{< ref "front-matter" >}}), one will be auto generated using the `summaryLength` parameter in the [site configuration](#site-configuration). |
| `list.showViews` | `false` | Whether or not list views are displayed. This requires firebase integrations to be enabled, look below. |
diff --git a/exampleSite/content/docs/front-matter/index.md b/exampleSite/content/docs/front-matter/index.md
index d4392e4c..338e2404 100644
--- a/exampleSite/content/docs/front-matter/index.md
+++ b/exampleSite/content/docs/front-matter/index.md
@@ -50,4 +50,5 @@ Front matter parameter default values are inherited from the theme's [base confi
|`series_order`|_Not set_|Number of the article within the series.|
|`summary`|Auto generated using `summaryLength` (see [site configuration]({{< ref "configuration#site-configuration" >}}))|When `showSummary` is enabled, this is the Markdown string to be used as the summary for this article.|
|`xml`|`true` unless excluded by `sitemap.excludedKinds`|Whether or not this article is included in the generated `/sitemap.xml` file.|
+|`layoutBackgroundHeaderSpace`|`true`|Add space between the header and the body.|
diff --git a/exampleSite/content/pagtest/_index.md b/exampleSite/content/pagtest/_index.md
new file mode 100644
index 00000000..a2578a5c
--- /dev/null
+++ b/exampleSite/content/pagtest/_index.md
@@ -0,0 +1,19 @@
+---
+title: "TEST"
+date: 2022-06-13T20:55:37+01:00
+draft: true
+
+showDate : false
+showDateUpdated : false
+showHeadingAnchors : false
+showPagination : false
+showReadingTime : false
+showTableOfContents : true
+showTaxonomies : false
+showWordCount : false
+showSummary : false
+sharingLinks : false
+
+cardView: false
+---
+
diff --git a/exampleSite/content/pagtest/file1 copy 10.md b/exampleSite/content/pagtest/file1 copy 10.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 10.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 11.md b/exampleSite/content/pagtest/file1 copy 11.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 11.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 12.md b/exampleSite/content/pagtest/file1 copy 12.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 12.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 13.md b/exampleSite/content/pagtest/file1 copy 13.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 13.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 14.md b/exampleSite/content/pagtest/file1 copy 14.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 14.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 15.md b/exampleSite/content/pagtest/file1 copy 15.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 15.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 16.md b/exampleSite/content/pagtest/file1 copy 16.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 16.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 17.md b/exampleSite/content/pagtest/file1 copy 17.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 17.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 18.md b/exampleSite/content/pagtest/file1 copy 18.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 18.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 19.md b/exampleSite/content/pagtest/file1 copy 19.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 19.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 2.md b/exampleSite/content/pagtest/file1 copy 2.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 2.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 20.md b/exampleSite/content/pagtest/file1 copy 20.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 20.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 21.md b/exampleSite/content/pagtest/file1 copy 21.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 21.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 22.md b/exampleSite/content/pagtest/file1 copy 22.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 22.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 23.md b/exampleSite/content/pagtest/file1 copy 23.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 23.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 24.md b/exampleSite/content/pagtest/file1 copy 24.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 24.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 25.md b/exampleSite/content/pagtest/file1 copy 25.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 25.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 26.md b/exampleSite/content/pagtest/file1 copy 26.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 26.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 27.md b/exampleSite/content/pagtest/file1 copy 27.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 27.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 28.md b/exampleSite/content/pagtest/file1 copy 28.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 28.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 3.md b/exampleSite/content/pagtest/file1 copy 3.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 3.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 4.md b/exampleSite/content/pagtest/file1 copy 4.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 4.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 5.md b/exampleSite/content/pagtest/file1 copy 5.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 5.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 6.md b/exampleSite/content/pagtest/file1 copy 6.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 6.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 7.md b/exampleSite/content/pagtest/file1 copy 7.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 7.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 8.md b/exampleSite/content/pagtest/file1 copy 8.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 8.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy 9.md b/exampleSite/content/pagtest/file1 copy 9.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy 9.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1 copy.md b/exampleSite/content/pagtest/file1 copy.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1 copy.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/exampleSite/content/pagtest/file1.md b/exampleSite/content/pagtest/file1.md
new file mode 100644
index 00000000..6c1f9414
--- /dev/null
+++ b/exampleSite/content/pagtest/file1.md
@@ -0,0 +1,7 @@
+---
+title: "Charts"
+date: 2019-03-06
+summary: "Blowfish includes Chart.js for powerful charts and data visualisations."
+tags: ["chart", "sample", "graph", "shortcodes"]
+showDate: false
+---
\ No newline at end of file
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 4ba6f614..0919d81c 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,5 +1,6 @@
{{ define "main" }}
+{{ .Scratch.Set "scope" "list" }}
{{ if .Site.Params.list.showHero | default false }}
{{ $heroStyle := print "partials/hero/" .Site.Params.list.heroStyle ".html" }}
{{ if templates.Exists $heroStyle }}
@@ -226,7 +227,6 @@
{{ end }}
{{ end }}
- {{ partial "pagination.html" . }}
{{ end }}
{{ else }}
@@ -236,4 +236,8 @@
{{ end }}
- {{ end }}
\ No newline at end of file
+
+ {{ partial "pagination.html" . }}
+
+ {{ end }}
+
\ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index adf1d7a3..c5a1a0d6 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,4 +1,6 @@
{{ define "main" }}
+{{ .Scratch.Set "scope" "single" }}
+
{{ if .Params.showHero | default (.Site.Params.article.showHero | default false) }}
{{ $heroStyle := print "partials/hero/" .Site.Params.article.heroStyle ".html" }}
diff --git a/layouts/partials/hero/background.html b/layouts/partials/hero/background.html
index 01893a07..7c03ccc2 100644
--- a/layouts/partials/hero/background.html
+++ b/layouts/partials/hero/background.html
@@ -2,9 +2,16 @@
{{- $featured := $images.GetMatch "*feature*" -}}
{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
{{- if not $featured }}{{ with .Site.Params.defaultBackgroundImage }}{{ $featured = resources.Get . }}{{ end }}{{ end -}}
+{{ $isParentList := eq (.Scratch.Get "scope") "list" }}
+{{ $shouldAddHeaderSpace := $.Params.layoutBackgroundHeaderSpace | default (or
+ (and ($.Site.Params.article.layoutBackgroundHeaderSpace | default true) (not $isParentList))
+ (and ($.Site.Params.list.layoutBackgroundHeaderSpace | default true) ($isParentList))
+ ) }}
{{- with $featured -}}
{{ with .Resize "1200x" }}
+{{ if $shouldAddHeaderSpace | default true}}
+{{ end }}
diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html
index 8f4cf25d..c5233132 100644
--- a/layouts/partials/pagination.html
+++ b/layouts/partials/pagination.html
@@ -1,39 +1,49 @@
-{{ $paginator := .Paginator }}
-{{ if gt $paginator.TotalPages 1 }}
-
- {{ if $paginator.HasPrev }}
- -
-
+ {{- .Scratch.Set "paginator.ellipsed" false -}}
+ {{ if $.Paginator.HasPrev }}
+
-
+
- ←
-
-
+ >←
+
{{ end }}
- {{ range $paginator.Pagers }}
- -
-
- {{ .PageNumber }}
-
+ {{- range $.Paginator.Pagers -}}
+ {{- $right := sub .TotalPages .PageNumber -}}
+ {{- $showNumber := or (le .PageNumber 1) (eq $right 0) -}}
+ {{- $showNumber := or $showNumber (and (gt .PageNumber (sub $.Paginator.PageNumber 3)) (lt .PageNumber (add $.Paginator.PageNumber 3))) -}}
+ {{- if $showNumber -}}
+ {{- $.Scratch.Set "paginator.ellipsed" false -}}
+ {{- $.Scratch.Set "paginator.shouldEllipse" false -}}
+ {{- else -}}
+ {{- $.Scratch.Set "paginator.shouldEllipse" (not ($.Scratch.Get "paginator.ellipsed") ) -}}
+ {{- $.Scratch.Set "paginator.ellipsed" true -}}
+ {{- end -}}
+ {{- if $showNumber -}}
+
-
+ {{ .PageNumber }}
- {{ end }}
- {{ if $paginator.HasNext }}
- -
-
+ …
+
+ {{- end -}}
+ {{- end -}}
+ {{ if $.Paginator.HasNext }}
+ -
+
- →
-
-
+ >→
+
{{ end }}
-{{ end }}
+{{- end -}}
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index dbfd1927..3e0a9354 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -21,7 +21,7 @@
"fuse.js": "^6.6.2",
"katex": "^0.16.3",
"mermaid": "^9.2.2",
- "prettier": "^2.7.1",
+ "prettier": "^2.8.0",
"prettier-plugin-go-template": "^0.0.13",
"prettier-plugin-tailwindcss": "^0.1.13",
"rimraf": "^3.0.2",
@@ -1673,9 +1673,9 @@
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="
},
"node_modules/prettier": {
- "version": "2.7.1",
- "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz",
- "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==",
+ "version": "2.8.0",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.0.tgz",
+ "integrity": "sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA==",
"dev": true,
"bin": {
"prettier": "bin-prettier.js"
@@ -3300,9 +3300,9 @@
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="
},
"prettier": {
- "version": "2.7.1",
- "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz",
- "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==",
+ "version": "2.8.0",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.0.tgz",
+ "integrity": "sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA==",
"dev": true
},
"prettier-plugin-go-template": {
diff --git a/package.json b/package.json
index 9a38687b..bb43fd8d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "hugo-blowfish-theme",
- "version": "2.14.1",
+ "version": "2.15.0",
"description": "Blowfish theme for Hugo",
"scripts": {
"fullinstall": "npm run preinstall && npm install && npm run postinstall",
@@ -39,7 +39,7 @@
"fuse.js": "^6.6.2",
"katex": "^0.16.3",
"mermaid": "^9.2.2",
- "prettier": "^2.7.1",
+ "prettier": "^2.8.0",
"prettier-plugin-go-template": "^0.0.13",
"prettier-plugin-tailwindcss": "^0.1.13",
"rimraf": "^3.0.2",