From 0c4b9edf48642e0f7e9f1bc647a5be4e2400fff8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 11:27:34 +0000 Subject: [PATCH 1/3] Bump release-drafter/release-drafter from 6.0.0 to 6.1.0 (#1027) Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 6.0.0 to 6.1.0. - [Release notes](https://github.com/release-drafter/release-drafter/releases) - [Commits](https://github.com/release-drafter/release-drafter/compare/v6.0.0...v6.1.0) --- updated-dependencies: - dependency-name: release-drafter/release-drafter 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/merge-to-main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/merge-to-main.yml b/.github/workflows/merge-to-main.yml index 691bf0c..9722dd5 100644 --- a/.github/workflows/merge-to-main.yml +++ b/.github/workflows/merge-to-main.yml @@ -10,6 +10,6 @@ jobs: runs-on: ubuntu-latest steps: # Create/Update release draft - - uses: release-drafter/release-drafter@v6.0.0 + - uses: release-drafter/release-drafter@v6.1.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 35a1686bfeb6314d1456498b761e168d50ecce1c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 11:22:04 +0000 Subject: [PATCH 2/3] Bump gaurav-nelson/github-action-markdown-link-check from 1.0.15 to 1.0.16 (#1028) Bumps [gaurav-nelson/github-action-markdown-link-check](https://github.com/gaurav-nelson/github-action-markdown-link-check) from 1.0.15 to 1.0.16. - [Release notes](https://github.com/gaurav-nelson/github-action-markdown-link-check/releases) - [Commits](https://github.com/gaurav-nelson/github-action-markdown-link-check/compare/1.0.15...1.0.16) --- updated-dependencies: - dependency-name: gaurav-nelson/github-action-markdown-link-check dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 7a13cf1..db089a7 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -80,4 +80,4 @@ jobs: # checkout to latest commit - uses: actions/checkout@v4.2.2 # run markdown linter - - uses: gaurav-nelson/github-action-markdown-link-check@1.0.15 + - uses: gaurav-nelson/github-action-markdown-link-check@1.0.16 From f8befe62cc1472d550d1c04d394e33e1f542d70b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernat=20Borr=C3=A0s=20Civil?= <70479573+BernatBC@users.noreply.github.com> Date: Tue, 28 Jan 2025 15:59:47 +0100 Subject: [PATCH 3/3] Add dark background (#1024) Co-authored-by: Emruz Hossain --- layouts/partials/sections/home.html | 67 +++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/layouts/partials/sections/home.html b/layouts/partials/sections/home.html index 9dddf46..3f244a2 100644 --- a/layouts/partials/sections/home.html +++ b/layouts/partials/sections/home.html @@ -20,6 +20,10 @@ {{ $backgroundImage = site.Params.background }} {{ end }} +{{ $darkBackgroundImage:= $backgroundImage }} +{{ if site.Params.darkBackground }} + {{ $darkBackgroundImage = site.Params.darkBackground }} +{{ end }} {{ $authorImage:= "/images/default-avatar.png" }} {{ if $author.image }} @@ -73,6 +77,41 @@ {{ $large := $src}} {{ end }} +{{/* get file that matches the filename as specified as src="" in shortcode */}} +{{ $darkSrc := resources.Get $darkBackgroundImage }} + +{{/* resize the src image to the given sizes */}} + +{{ $darkTiny := $darkSrc.Resize $tinyw }} +{{ $darkSmall := $darkSrc.Resize $smallw }} +{{ $darkMedium := $darkSrc.Resize $mediumw }} +{{ $darkLarge := $darkSrc.Resize $largew }} + +{{/* only use images smaller than or equal to the src (original) image size, as Hugo will upscale small images */}} +{{/* set the sizes attribute to (min-width: 35em) 1200px, 100vw unless overridden in shortcode */}} + +{{ if lt $darkSrc.Width "500" }} + {{ $darkTiny := $src}} + {{ $darkSmall := $src}} + {{ $darkMedium := $src}} + {{ $darkLarge := $src}} +{{ end }} + +{{ if lt $src.Width "800" }} + {{ $darkSmall := $src}} + {{ $darkMedium := $src}} + {{ $darkLarge := $src}} +{{ end }} + +{{ if lt $src.Width "1200" }} + {{ $darkMedium := $src}} + {{ $darkLarge := $src}} +{{ end }} + +{{ if lt $src.Width "1500" }} + {{ $darkLarge := $src}} +{{ end }} +