docs: config.toml -> hugo.toml

This commit is contained in:
ZhenShuo Leo
2025-11-03 11:05:26 +08:00
parent 8642fc75cf
commit 3a1b44c177
30 changed files with 69 additions and 69 deletions
@@ -27,12 +27,12 @@ Fathom Analytics のサポートを有効にするには、`config/_default/para
### Google アナリティクス
Google アナリティクスのサポートは、Hugo の内部パーシャルを介して提供されます。`config/_default/config.toml` ファイルに `googleAnalytics` キーを指定するだけで、スクリプトが自動的に追加されます。
Google アナリティクスのサポートは、Hugo の内部パーシャルを介して提供されます。`config/_default/hugo.toml` ファイルに `googleAnalytics` キーを指定するだけで、スクリプトが自動的に追加されます。
指定された設定値に基づいて、バージョン 3 (analytics.js) とバージョン 4 (gtag.js) の両方がサポートされています。
```toml
# config/_default/config.toml
# config/_default/hugo.toml
# バージョン 3
googleAnalytics = "UA-PROPERTY_ID"