mirror of https://github.com/luizdepra/hugo-coder.git

Daniel Olshansky
16.02.2025 7130ac0edea2ae91685a9aa7c8b241dbb74b95a5
Update docs for `docs/analytics/onedollarstats.md` (#948)

This is a followup to #944.

The content security policy had to be updated for this to work.

I worked with the @ drizzle to get this working. Discord thread is
available
[here](https://discord.com/channels/1043890932593987624/1315096480041799720).

Screenshot as a verification for posterity:

<img width="971" alt="Screenshot 2024-12-21 at 4 08 00 PM"
src="https://github.com/user-attachments/assets/4c9a1a60-9f3a-4acc-a887-be1490e1add5"
/>

Co-authored-by: Luiz F. A. de Prá <luizdepra@users.noreply.github.com>
1 files modified
17 ■■■■■ changed files
docs/analytics/onedollarstats.md 17 ●●●●● patch | view | raw | blame | history
docs/analytics/onedollarstats.md
@@ -4,3 +4,20 @@
[params.onedollarstats]
    id = "data-site-id"
```
You will also need to update your content security policy:
```toml
[params.csp]
  ...
  scriptsrc = [
    ...
    "https://assets.onedollarstats.com",
  ]
  ...
  connectsrc = [
    ...
    "https://assets.onedollarstats.com",
    ...
  ]
```