From d7a55eec1b73554e5a3475b75826385c4011608a Mon Sep 17 00:00:00 2001 From: Bersella Date: Thu, 17 Oct 2024 21:03:06 +0800 Subject: [PATCH] Fix a compilation issue in Actions --- content/about.md | 2 +- themes/tfsci/layouts/partials/head/google-analytics.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/about.md b/content/about.md index 4534fd5..f0947dc 100644 --- a/content/about.md +++ b/content/about.md @@ -2,7 +2,7 @@ title: 关于本站 linkTitle: 关于 description: 关于 Transfeminine Science 以及中文译本存档站的详情 -trackHash: 3b8aec69d9ff0fe9aee4de5969d7dbaead1ddaa5 +trackHash: c17ddbc53fcd09bfbdc87887cbb4dd94e778dc48 aliases: /about weight: 4 --- diff --git a/themes/tfsci/layouts/partials/head/google-analytics.html b/themes/tfsci/layouts/partials/head/google-analytics.html index 8895b91..dfdf061 100644 --- a/themes/tfsci/layouts/partials/head/google-analytics.html +++ b/themes/tfsci/layouts/partials/head/google-analytics.html @@ -1,4 +1,4 @@ -{{- $defines := dict "MEASUREMENT_ID" (jsonify .Site.GoogleAnalytics) -}} +{{- $defines := dict "MEASUREMENT_ID" (jsonify .Site.Config.Services.GoogleAnalytics.ID) -}} {{- $page := . -}} {{- with resources.Get "gtag.ts" | js.Build (dict "defines" $defines) | minify | fingerprint }}