Skip to content

Commit

Permalink
docs: replace the GoogleAnalytics parameter with services.googleAnaly…
Browse files Browse the repository at this point in the history
…tics.ID
  • Loading branch information
razonyang committed Oct 31, 2023
1 parent 5b2e093 commit 7dd8dfe
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
8 changes: 5 additions & 3 deletions exampleSite/config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ paginate = 10
# Disqus
# disqusShortname = "yourdiscussshortname"

# Google analytics
# googleAnalytics = "UA-123-45"

enableRobotsTXT = true

enableEmoji = true
Expand All @@ -31,6 +28,11 @@ pygmentsUseClasses = true

timeout = "120s"

[services]
# Google analytics
# [services.googleAnalytics]
# ID = 'G-MEASUREMENT_ID'

[blackfriday]
hrefTargetBlank = true

Expand Down
5 changes: 4 additions & 1 deletion exampleSite/config/production/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
baseURL = "https://hbs.razonyang.com/v1/"
googleAnalytics = "G-R7DPHPZ86S"

[services]
[services.googleAnalytics]
ID = 'G-R7DPHPZ86S'
4 changes: 3 additions & 1 deletion exampleSite/content/docs/configuration/site/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ The site configuration is located in `config/_default/config.toml` by default.
| `paginatePath` | String | `page` |
| `enableRobotsTXT` | Boolean | `true` |
| `disqusShortname` | String | - | [Disqus]({{< ref "/docs/widgets/comments#disqus" >}}) shortname.
| `googleAnalytics` | String | - | Google Analytics, both of universal analytics and GA4 are supported.
| `services` | Object | - |
| `services.googleAnalytics` | Object | - | Google Analytics, supports GA4 only.
| `services.googleAnalytics.ID` | String | - | Measurement ID.
| `author` | Object | - | [Author Widget]({{< ref "/docs/widgets/author" >}}).

See also [All Configuration Settings](https://gohugo.io/getting-started/configuration/#all-configuration-settings).
4 changes: 3 additions & 1 deletion exampleSite/content/docs/configuration/site/index.zh-hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ authors = ["RazonYang"]
| `paginatePath` | String | `page` |
| `enableRobotsTXT` | Boolean | `true` |
| `disqusShortname` | String | - | [Disqus]({{< ref "/docs/widgets/comments#disqus" >}}) shortname。
| `googleAnalytics` | String | - | Google Analytics, both of universal analytics and GA4 are supported.
| `services` | Object | - |
| `services.googleAnalytics` | Object | - | Google Analytics, supports GA4 only.
| `services.googleAnalytics.ID` | String | - | Measurement ID.
| `author` | Object | - | [作者小部件]({{< ref "/docs/widgets/author" >}})。

请参阅 [All Configuration Settings](https://gohugo.io/getting-started/configuration/#all-configuration-settings)
4 changes: 3 additions & 1 deletion exampleSite/content/docs/configuration/site/index.zh-hant.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ authors = ["RazonYang"]
| `paginatePath` | String | `page` |
| `enableRobotsTXT` | Boolean | `true` |
| `disqusShortname` | String | - | [Disqus]({{< ref "/docs/widgets/comments#disqus" >}}) shortname。
| `googleAnalytics` | String | - | Google Analytics, both of universal analytics and GA4 are supported.
| `services` | Object | - |
| `services.googleAnalytics` | Object | - | Google Analytics, supports GA4 only.
| `services.googleAnalytics.ID` | String | - | Measurement ID.
| `author` | Object | - | [作者小部件]({{< ref "/docs/widgets/author" >}})。

請參閱 [All Configuration Settings](https://gohugo.io/getting-started/configuration/#all-configuration-settings)

0 comments on commit 7dd8dfe

Please sign in to comment.