From 024ffa7b4871ec57b4c86acd07c253cfeab9422e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 24 Oct 2024 11:10:20 +0000 Subject: [PATCH 1/3] Bump actions/checkout from 4.2.1 to 4.2.2 (#1008) Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.1 to 4.2.2. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.2.1...v4.2.2) --- updated-dependencies: - dependency-name: actions/checkout 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/autoprefixer.yml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/pull-request.yml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/autoprefixer.yml b/.github/workflows/autoprefixer.yml index 4473b0b..0717b2a 100644 --- a/.github/workflows/autoprefixer.yml +++ b/.github/workflows/autoprefixer.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout to latest commit - uses: actions/checkout@v4.2.1 + uses: actions/checkout@v4.2.2 - name: Setup Node uses: actions/setup-node@v4 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b5017c4..5818aae 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -39,7 +39,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4.2.1 + uses: actions/checkout@v4.2.2 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index c7fc63b..7a13cf1 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: # checkout to the commit that has been pushed - - uses: actions/checkout@v4.2.1 + - uses: actions/checkout@v4.2.2 - name: Setup Node uses: actions/setup-node@v4 @@ -35,7 +35,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.2.1 + - uses: actions/checkout@v4.2.2 - name: Setup Node uses: actions/setup-node@v4 @@ -78,6 +78,6 @@ jobs: runs-on: ubuntu-latest steps: # checkout to latest commit - - uses: actions/checkout@v4.2.1 + - uses: actions/checkout@v4.2.2 # run markdown linter - uses: gaurav-nelson/github-action-markdown-link-check@1.0.15 From 515b7eb3bff1c89dbd119c51824d6ae94ad5a2d7 Mon Sep 17 00:00:00 2001 From: JY Hsu Date: Thu, 24 Oct 2024 23:54:40 +0800 Subject: [PATCH 2/3] Fix input focus and placeholder color for footer section (#1005) Co-authored-by: Emruz Hossain --- assets/styles/sections/footer.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/styles/sections/footer.scss b/assets/styles/sections/footer.scss index 423de07..6ddbf39 100644 --- a/assets/styles/sections/footer.scss +++ b/assets/styles/sections/footer.scss @@ -97,6 +97,10 @@ html[data-theme='dark'] { background-color: get-dark-color('bg-primary'); &:focus { background-color: get-dark-color('bg-secondary'); + color: get-dark-color('text-color'); + } + &::placeholder { + color: get-dark-color('muted-text-color'); } } From 3be5a58a7c05c5e2fff0bfdd4ae3f7ab0435a64f Mon Sep 17 00:00:00 2001 From: JY Hsu Date: Wed, 27 Nov 2024 07:59:35 +0800 Subject: [PATCH 3/3] Fix google analytics feature (#989) * fix: Fix google analytics * fix: Change respectDoNotTrack in GA html template --------- Co-authored-by: Emruz Hossain --- layouts/partials/analytics.html | 4 +--- layouts/partials/google_analytics.html | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 layouts/partials/google_analytics.html diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html index fc5abb5..58e83f5 100644 --- a/layouts/partials/analytics.html +++ b/layouts/partials/analytics.html @@ -4,9 +4,7 @@ {{ with .services }} {{ with .google }} - {{ $privacyConfig:= dict (slice "Site" "Config" "Privacy" "GoogleAnalytics") $.Site.Config.Privacy.GoogleAnalytics }} - {{ $analyticsConfig := dict (slice "Site" "Config" "Services" "GoogleAnalytics" "ID") .id }} - {{ template "_internal/google_analytics.html" (merge $privacyConfig $analyticsConfig) }} + {{ partial "google_analytics.html" . }} {{ end }} diff --git a/layouts/partials/google_analytics.html b/layouts/partials/google_analytics.html new file mode 100644 index 0000000..4d451c1 --- /dev/null +++ b/layouts/partials/google_analytics.html @@ -0,0 +1,22 @@ +{{ if site.Params.features.analytics.enabled }} + {{- with site.Params.features.analytics.services.google.id }} + {{- if strings.HasPrefix (lower .) "ua-" }} + {{- warnf "Google Analytics 4 (GA4) replaced Google Universal Analytics (UA) effective 1 July 2023. See https://support.google.com/analytics/answer/11583528. Create a GA4 property and data stream, then replace the Google Analytics ID in your site configuration with the new value." }} + {{- else }} + + + {{- end }} + {{- end }} +{{- end -}} \ No newline at end of file