-
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: uprade disqusShortname/googleAnalytics
- Loading branch information
Showing
7 changed files
with
1,913 additions
and
1,492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { Callout } from 'nextra/components' | ||
|
||
# Social Comments | ||
|
||
Currently, Dream supports these comment systems: | ||
|
||
- [Disqus](https://disqus.com/) | ||
- [utterances](https://utteranc.es/) | ||
- [Valine](https://valine.js.org/en/) | ||
|
||
## Disqus | ||
|
||
In `config.toml`, set: | ||
|
||
```toml | ||
[services] | ||
[services.disqus] | ||
shortname = "..." | ||
``` | ||
|
||
<Callout type="warning" emoji="⚠️"> | ||
You may have used `disqusShortname = "..."` before. This is deprecated in Hugo `0.120.0`. | ||
|
||
Please upgrade to the new configuration. See https://gohugo.io/methods/site/disqusshortname/ for more details. | ||
</Callout> | ||
|
||
Disqus comments will be showed on the **Single Post Page** and **About Page**. | ||
|
||
## utterances | ||
|
||
See: https://g1en.site/hugo-theme-dream/#/params-configurations?id=utterancesrepo-quotg1eny0ungg1eny0unggithubioquot | ||
|
||
The utterances only takes effect on the **Single Post Page**. | ||
|
||
## Valine | ||
|
||
See: https://g1en.site/hugo-theme-dream/#/params-configurations?id=valine-true | ||
|
||
Valine only takes effect on the **Single Post Page**. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Callout } from 'nextra/components' | ||
|
||
# Website Analytics | ||
|
||
Now, Dream only support [Google Analytics](https://www.google.com/analytics/). | ||
|
||
In `config.toml`, set: | ||
|
||
```toml | ||
[services] | ||
[services.googleAnalytics] | ||
ID = '...' | ||
|
||
``` | ||
|
||
<Callout type="warning" emoji="⚠️"> | ||
You may have used `googleAnalytics = "..."` before. This is deprecated in Hugo `0.120.0`. | ||
|
||
Please upgrade to the new configuration. See https://gohugo.io/methods/site/googleanalytics/ for more details. | ||
</Callout> |
Oops, something went wrong.