From 71a24464c03bb66cf74cf890153c5d28a260acec Mon Sep 17 00:00:00 2001 From: Zdenek Kedaj Date: Sat, 1 Oct 2022 23:43:09 +0200 Subject: [PATCH 1/7] extlink.html shortcode allow opening links in new browser tab --- layouts/shortcodes/extlink.html | 1 + 1 file changed, 1 insertion(+) create mode 100644 layouts/shortcodes/extlink.html diff --git a/layouts/shortcodes/extlink.html b/layouts/shortcodes/extlink.html new file mode 100644 index 0000000..26c8d00 --- /dev/null +++ b/layouts/shortcodes/extlink.html @@ -0,0 +1 @@ +{{ with .Get "href" }}{{ end }}{{ with .Get "text" }}{{ . }}{{ end }} \ No newline at end of file From c7a3401cbf2f41678a7bdd4ff99838b461e07e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Soszy=C5=84ski?= Date: Mon, 28 Nov 2022 12:00:51 +0100 Subject: [PATCH 2/7] Add font-display property --- static/css/fonts.css | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/static/css/fonts.css b/static/css/fonts.css index a5b4a1d..a9d8c08 100644 --- a/static/css/fonts.css +++ b/static/css/fonts.css @@ -20,6 +20,7 @@ font-family: 'Open Sans'; font-style: normal; font-weight: 300; + font-display: swap; src: url('../fonts/open-sans-v27-latin-300.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -34,6 +35,7 @@ font-family: 'Open Sans'; font-style: normal; font-weight: 400; + font-display: swap; src: url('../fonts/open-sans-v27-latin-regular.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -48,6 +50,7 @@ font-family: 'Open Sans'; font-style: normal; font-weight: 600; + font-display: swap; src: url('../fonts/open-sans-v27-latin-600.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -62,6 +65,7 @@ font-family: 'Open Sans'; font-style: normal; font-weight: 700; + font-display: swap; src: url('../fonts/open-sans-v27-latin-700.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -76,6 +80,7 @@ font-family: 'Open Sans'; font-style: normal; font-weight: 800; + font-display: swap; src: url('../fonts/open-sans-v27-latin-800.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-800.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -90,6 +95,7 @@ font-family: 'Open Sans'; font-style: italic; font-weight: 300; + font-display: swap; src: url('../fonts/open-sans-v27-latin-300italic.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-300italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -104,6 +110,7 @@ font-family: 'Open Sans'; font-style: italic; font-weight: 400; + font-display: swap; src: url('../fonts/open-sans-v27-latin-italic.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -118,6 +125,7 @@ font-family: 'Open Sans'; font-style: italic; font-weight: 600; + font-display: swap; src: url('../fonts/open-sans-v27-latin-600italic.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-600italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -132,6 +140,7 @@ font-family: 'Open Sans'; font-style: italic; font-weight: 700; + font-display: swap; src: url('../fonts/open-sans-v27-latin-700italic.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -146,6 +155,7 @@ font-family: 'Open Sans'; font-style: italic; font-weight: 800; + font-display: swap; src: url('../fonts/open-sans-v27-latin-800italic.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-800italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -164,6 +174,7 @@ font-family: 'Open Sans Condensed'; font-style: normal; font-weight: 300; + font-display: swap; src: url('../fonts/open-sans-condensed-v21-latin-300.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-condensed-v21-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -177,6 +188,7 @@ @font-face { font-family: 'Open Sans Condensed'; font-style: italic; + font-display: swap; font-weight: 300; src: url('../fonts/open-sans-condensed-v21-latin-300italic.eot'); /* IE9 Compat Modes */ src: local(''), @@ -192,6 +204,7 @@ font-family: 'Open Sans Condensed'; font-style: normal; font-weight: 700; + font-display: swap; src: url('../fonts/open-sans-condensed-v21-latin-700.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-condensed-v21-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -210,6 +223,7 @@ font-family: 'Oswald'; font-style: normal; font-weight: 300; + font-display: swap; src: url('../fonts/oswald-v40-latin-300.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/oswald-v40-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -224,6 +238,7 @@ font-family: 'Oswald'; font-style: normal; font-weight: 400; + font-display: swap; src: url('../fonts/oswald-v40-latin-regular.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/oswald-v40-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -238,6 +253,7 @@ font-family: 'Oswald'; font-style: normal; font-weight: 700; + font-display: swap; src: url('../fonts/oswald-v40-latin-700.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/oswald-v40-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -256,6 +272,7 @@ font-family: 'Roboto Slab'; font-style: normal; font-weight: 100; + font-display: swap; src: url('../fonts/roboto-slab-v16-latin-100.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/roboto-slab-v16-latin-100.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -270,6 +287,7 @@ font-family: 'Roboto Slab'; font-style: normal; font-weight: 300; + font-display: swap; src: url('../fonts/roboto-slab-v16-latin-300.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/roboto-slab-v16-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -284,6 +302,7 @@ font-family: 'Roboto Slab'; font-style: normal; font-weight: 400; + font-display: swap; src: url('../fonts/roboto-slab-v16-latin-regular.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/roboto-slab-v16-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -298,6 +317,7 @@ font-family: 'Roboto Slab'; font-style: normal; font-weight: 700; + font-display: swap; src: url('../fonts/roboto-slab-v16-latin-700.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/roboto-slab-v16-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ From 756658467ca761b3d86b2d9e7aca7f9ebe388319 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 9 Feb 2023 16:51:52 +0100 Subject: [PATCH 3/7] chore(deps-dev): bump prettier from 2.7.1 to 2.8.4 (#89) Bumps [prettier](https://github.com/prettier/prettier) from 2.7.1 to 2.8.4. - [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.4) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2618b75..58efa2d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,9 +5,9 @@ "requires": true, "dependencies": { "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.4", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.4.tgz", + "integrity": "sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==", "dev": true }, "prettier-plugin-go-template": { diff --git a/package.json b/package.json index 6b6d543..0050103 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ }, "homepage": "https://github.com/janraasch/hugo-scroll#readme", "devDependencies": { - "prettier": "^2.7.1", + "prettier": "^2.8.4", "prettier-plugin-go-template": "0.0.13" } } From a9d7afe14cab6451977551abd83387140cbc1949 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 9 Feb 2023 16:52:10 +0100 Subject: [PATCH 4/7] chore(deps): bump peaceiris/actions-gh-pages from 3.8.0 to 3.9.2 (#86) Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) from 3.8.0 to 3.9.2. - [Release notes](https://github.com/peaceiris/actions-gh-pages/releases) - [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md) - [Commits](https://github.com/peaceiris/actions-gh-pages/compare/v3.8.0...v3.9.2) --- updated-dependencies: - dependency-name: peaceiris/actions-gh-pages dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 569bd32..519e59f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: - name: Deploy to GitHub Pages if: github.event_name == 'push' - uses: peaceiris/actions-gh-pages@v3.8.0 + uses: peaceiris/actions-gh-pages@v3.9.2 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./public From 3c143a6349e0fec0c9c20233ce881205cb49ce68 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 18 Jul 2022 01:30:30 +0200 Subject: [PATCH 5/7] Fix invalid CSS syntax Signed-off-by: Ferdinand Thiessen --- static/css/screen.css | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/static/css/screen.css b/static/css/screen.css index 6e2a905..ce5ba8b 100644 --- a/static/css/screen.css +++ b/static/css/screen.css @@ -414,11 +414,9 @@ table tbody > tr:nth-child(odd) > th { background-color: #f6f6f6; } -table.plain { - tbody > tr:nth-child(odd) > td, - tbody > tr:nth-child(odd) > th { +table.plain tbody > tr:nth-child(odd) > td, +table.plain tbody > tr:nth-child(odd) > th { background: transparent; - } } li { From a8f0e18f5614482e60459edbaa4848ef9de0c8ed Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 18 Jul 2022 01:30:50 +0200 Subject: [PATCH 6/7] Add icon on defaul single view infront of back-to-homepage link Signed-off-by: Ferdinand Thiessen --- layouts/_default/single.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index cb3cb04..1760608 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,9 +2,7 @@
- +

{{ .Title }}

From a59eb2f8967da997000f27b2cd714095ccb4881f Mon Sep 17 00:00:00 2001 From: Oliver Obst Date: Sat, 4 Mar 2023 18:45:17 +1100 Subject: [PATCH 7/7] added support for external links in main menu --- layouts/index.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index d66bf9e..a3bf99f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,6 +2,8 @@ {{ $headless := .Site.GetPage "/homepage" }} {{ $sections := $headless.Resources.ByType "page" }} {{ $sections := cond .Site.BuildDrafts $sections (where $sections "Draft" "==" false) }} +{{ $filtered := where $sections "Params.external" "==" nil }} +