From f4b919681e43955b35be36078753575c8ffc1d51 Mon Sep 17 00:00:00 2001 From: Anton Antonov Date: Sun, 20 Nov 2022 15:14:18 +0200 Subject: [PATCH 1/8] :sparkles: 266: Added option to disable the space between the header and the body when using heroStyle: background --- config/_default/params.toml | 2 ++ layouts/partials/hero/background.html | 2 ++ 2 files changed, 4 insertions(+) diff --git a/config/_default/params.toml b/config/_default/params.toml index bad1d72c..4f99dcf3 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 + layoutBackgroundMoreSpaceBetweenHeaderAndBody = 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 + #layoutBackgroundMoreSpaceBetweenHeaderAndBody = true # only used when heroStyle equals background showBreadcrumbs = false showSummary = false #showViews = true diff --git a/layouts/partials/hero/background.html b/layouts/partials/hero/background.html index 01893a07..fe16c4cf 100644 --- a/layouts/partials/hero/background.html +++ b/layouts/partials/hero/background.html @@ -4,7 +4,9 @@ {{- if not $featured }}{{ with .Site.Params.defaultBackgroundImage }}{{ $featured = resources.Get . }}{{ end }}{{ end -}} {{- with $featured -}} {{ with .Resize "1200x" }} +{{ if $.Site.Params.article.layoutBackgroundMoreSpaceBetweenHeaderAndBody | default true }}
+{{ end }}
From d024ad961b88c9b08a296ba599eaf98ea62b090d Mon Sep 17 00:00:00 2001 From: Anton Antonov Date: Tue, 22 Nov 2022 12:55:24 +0200 Subject: [PATCH 2/8] 266: Added option to disable the space between the header and the footer when using heroStyle: background --- config/_default/params.toml | 4 ++-- exampleSite/content/docs/configuration/index.md | 2 ++ exampleSite/content/docs/front-matter/index.md | 1 + layouts/_default/list.html | 1 + layouts/_default/single.html | 2 ++ layouts/partials/hero/background.html | 7 ++++++- 6 files changed, 14 insertions(+), 3 deletions(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index 4f99dcf3..641c6c1c 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -45,7 +45,7 @@ enableCodeCopy = true showHero = true heroStyle = "basic" # valid options: basic, big, background layoutBackgroundBlur = false # only used when heroStyle equals background - layoutBackgroundMoreSpaceBetweenHeaderAndBody = true # only used when heroStyle equals background + layoutBackgroundHeaderSpace = true # only used when heroStyle equals background showBreadcrumbs = true showDraftLabel = true showEdit = true @@ -66,7 +66,7 @@ enableCodeCopy = true [list] #showHero = true #heroStyle = "background" # valid options: basic, big, background - #layoutBackgroundMoreSpaceBetweenHeaderAndBody = true # only used when heroStyle equals background + #layoutBackgroundHeaderSpace = true # only used when heroStyle equals background showBreadcrumbs = false showSummary = false #showViews = true diff --git a/exampleSite/content/docs/configuration/index.md b/exampleSite/content/docs/configuration/index.md index 717cd5b5..15e5cd91 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` | `false` | 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` | `false` | 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/layouts/_default/list.html b/layouts/_default/list.html index 4ba6f614..05a88421 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 }} 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 fe16c4cf..7c03ccc2 100644 --- a/layouts/partials/hero/background.html +++ b/layouts/partials/hero/background.html @@ -2,9 +2,14 @@ {{- $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 $.Site.Params.article.layoutBackgroundMoreSpaceBetweenHeaderAndBody | default true }} +{{ if $shouldAddHeaderSpace | default true}}
{{ end }}
Date: Tue, 22 Nov 2022 12:57:25 +0200 Subject: [PATCH 3/8] 266: Added option to disable the space between the header and the footer when using heroStyle: background --- exampleSite/content/docs/configuration/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exampleSite/content/docs/configuration/index.md b/exampleSite/content/docs/configuration/index.md index 15e5cd91..532ab37a 100644 --- a/exampleSite/content/docs/configuration/index.md +++ b/exampleSite/content/docs/configuration/index.md @@ -161,7 +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` | `false` | Add space between the header and the body. | +| `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. | @@ -181,7 +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` | `false` | Add space between the header and the body. | +| `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. | From 333b79ddd16d94397aa1c397c07894b5cce95a27 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 23 Nov 2022 05:09:39 +0000 Subject: [PATCH 4/8] =?UTF-8?q?=F0=9F=93=8C=20Bump=20prettier=20from=202.7?= =?UTF-8?q?.1=20to=202.8.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [prettier](https://github.com/prettier/prettier) from 2.7.1 to 2.8.0. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.7.1...2.8.0) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) 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..a47da314 100644 --- a/package.json +++ b/package.json @@ -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", From 9d83e45d1c76fdbd3dd3fc869372d5ed2aab07d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Thu, 24 Nov 2022 21:08:33 +0000 Subject: [PATCH 5/8] =?UTF-8?q?=F0=9F=91=BD=20Update=20Hugo=20version=20su?= =?UTF-8?q?pport?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From cae852186cb63abba78d7ff054d365cb3ffc537e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Thu, 24 Nov 2022 21:21:36 +0000 Subject: [PATCH 6/8] =?UTF-8?q?=E2=9C=A8=20Different=20pagination=20style?= =?UTF-8?q?=20by=20@martinvisser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exampleSite/config/_default/config.toml | 2 +- exampleSite/config/_default/menus.en.toml | 5 +- exampleSite/content/pagtest/_index.md | 19 ++++++ exampleSite/content/pagtest/file1 copy 10.md | 7 ++ exampleSite/content/pagtest/file1 copy 11.md | 7 ++ exampleSite/content/pagtest/file1 copy 12.md | 7 ++ exampleSite/content/pagtest/file1 copy 13.md | 7 ++ exampleSite/content/pagtest/file1 copy 14.md | 7 ++ exampleSite/content/pagtest/file1 copy 15.md | 7 ++ exampleSite/content/pagtest/file1 copy 16.md | 7 ++ exampleSite/content/pagtest/file1 copy 17.md | 7 ++ exampleSite/content/pagtest/file1 copy 18.md | 7 ++ exampleSite/content/pagtest/file1 copy 19.md | 7 ++ exampleSite/content/pagtest/file1 copy 2.md | 7 ++ exampleSite/content/pagtest/file1 copy 20.md | 7 ++ exampleSite/content/pagtest/file1 copy 21.md | 7 ++ exampleSite/content/pagtest/file1 copy 22.md | 7 ++ exampleSite/content/pagtest/file1 copy 23.md | 7 ++ exampleSite/content/pagtest/file1 copy 24.md | 7 ++ exampleSite/content/pagtest/file1 copy 25.md | 7 ++ exampleSite/content/pagtest/file1 copy 26.md | 7 ++ exampleSite/content/pagtest/file1 copy 27.md | 7 ++ exampleSite/content/pagtest/file1 copy 28.md | 7 ++ exampleSite/content/pagtest/file1 copy 3.md | 7 ++ exampleSite/content/pagtest/file1 copy 4.md | 7 ++ exampleSite/content/pagtest/file1 copy 5.md | 7 ++ exampleSite/content/pagtest/file1 copy 6.md | 7 ++ exampleSite/content/pagtest/file1 copy 7.md | 7 ++ exampleSite/content/pagtest/file1 copy 8.md | 7 ++ exampleSite/content/pagtest/file1 copy 9.md | 7 ++ exampleSite/content/pagtest/file1 copy.md | 7 ++ exampleSite/content/pagtest/file1.md | 7 ++ layouts/partials/pagination.html | 72 +++++++++++--------- 33 files changed, 268 insertions(+), 33 deletions(-) create mode 100644 exampleSite/content/pagtest/_index.md create mode 100644 exampleSite/content/pagtest/file1 copy 10.md create mode 100644 exampleSite/content/pagtest/file1 copy 11.md create mode 100644 exampleSite/content/pagtest/file1 copy 12.md create mode 100644 exampleSite/content/pagtest/file1 copy 13.md create mode 100644 exampleSite/content/pagtest/file1 copy 14.md create mode 100644 exampleSite/content/pagtest/file1 copy 15.md create mode 100644 exampleSite/content/pagtest/file1 copy 16.md create mode 100644 exampleSite/content/pagtest/file1 copy 17.md create mode 100644 exampleSite/content/pagtest/file1 copy 18.md create mode 100644 exampleSite/content/pagtest/file1 copy 19.md create mode 100644 exampleSite/content/pagtest/file1 copy 2.md create mode 100644 exampleSite/content/pagtest/file1 copy 20.md create mode 100644 exampleSite/content/pagtest/file1 copy 21.md create mode 100644 exampleSite/content/pagtest/file1 copy 22.md create mode 100644 exampleSite/content/pagtest/file1 copy 23.md create mode 100644 exampleSite/content/pagtest/file1 copy 24.md create mode 100644 exampleSite/content/pagtest/file1 copy 25.md create mode 100644 exampleSite/content/pagtest/file1 copy 26.md create mode 100644 exampleSite/content/pagtest/file1 copy 27.md create mode 100644 exampleSite/content/pagtest/file1 copy 28.md create mode 100644 exampleSite/content/pagtest/file1 copy 3.md create mode 100644 exampleSite/content/pagtest/file1 copy 4.md create mode 100644 exampleSite/content/pagtest/file1 copy 5.md create mode 100644 exampleSite/content/pagtest/file1 copy 6.md create mode 100644 exampleSite/content/pagtest/file1 copy 7.md create mode 100644 exampleSite/content/pagtest/file1 copy 8.md create mode 100644 exampleSite/content/pagtest/file1 copy 9.md create mode 100644 exampleSite/content/pagtest/file1 copy.md create mode 100644 exampleSite/content/pagtest/file1.md diff --git a/exampleSite/config/_default/config.toml b/exampleSite/config/_default/config.toml index a933db89..f5712daf 100644 --- a/exampleSite/config/_default/config.toml +++ b/exampleSite/config/_default/config.toml @@ -7,7 +7,7 @@ baseURL = "https://nunocoracao.github.io/blowfish" defaultContentLanguage = "en" enableRobotsTXT = true -paginate = 20 +paginate = 10 summaryLength = 30 buildDrafts = false 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/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/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 }} - -{{ end }} +{{- end -}} \ No newline at end of file From ee838f05902850c9cf96fdcb849d7d79a5f97fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Thu, 24 Nov 2022 21:24:43 +0000 Subject: [PATCH 7/8] fixed bug --- exampleSite/config/_default/config.toml | 2 +- layouts/_default/list.html | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/exampleSite/config/_default/config.toml b/exampleSite/config/_default/config.toml index f5712daf..a933db89 100644 --- a/exampleSite/config/_default/config.toml +++ b/exampleSite/config/_default/config.toml @@ -7,7 +7,7 @@ baseURL = "https://nunocoracao.github.io/blowfish" defaultContentLanguage = "en" enableRobotsTXT = true -paginate = 10 +paginate = 20 summaryLength = 30 buildDrafts = false diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 05a88421..0919d81c 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -227,7 +227,6 @@ {{ end }} {{ end }} - {{ partial "pagination.html" . }} {{ end }} {{ else }} @@ -237,4 +236,8 @@

{{ end }} - {{ end }} \ No newline at end of file + + {{ partial "pagination.html" . }} + + {{ end }} + \ No newline at end of file From 4204c0e40d021bda3252f2cb60d2b4c3394f9eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Thu, 24 Nov 2022 21:33:15 +0000 Subject: [PATCH 8/8] final touches --- exampleSite/config/_default/params.toml | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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/package.json b/package.json index a47da314..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",