Skip to content

Commit 827f2e2

Browse files
committed
plausible added
1 parent cb35ce0 commit 827f2e2

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"basePath": "/",
33
"baseUrl": "https://radar.allegro.tech",
44
"editUrl": "https://github.dev/allegro/radar/blob/main/radar/{release}/{id}.md",
5-
"logoFile": "logo.svg",
5+
"logoFile": "/logo.svg",
66
"jsFile": "",
77
"toggles": {
88
"showSearch": false,

inject-plausible.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sed -i '' 's#</head>#<script defer data-domain="radar.allegro.tech" src="https://plausible.io/js/script.js"></script></head>#' build/index.html
2+
sed -i '' 's#</head>#<script defer data-domain="radar.allegro.tech" src="https://plausible.io/js/script.js"></script></head>#' build/404.html

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"license": "MIT",
55
"scripts": {
66
"build": "techradar build --strict",
7+
"postbuild": "./inject-plausible.sh",
78
"serve": "techradar serve"
89
},
910
"dependencies": {

0 commit comments

Comments
 (0)