Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit 91c1812

Browse files
Upgrade theme to 0.1.23 to fix Plausible (#373)
Co-authored-by: Thomas Kunwar <yathomasi@gmail.com>
1 parent 2be2870 commit 91c1812

File tree

7 files changed

+9
-43
lines changed

7 files changed

+9
-43
lines changed

gatsby-ssr.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"node": "^16 || ^18"
4040
},
4141
"dependencies": {
42-
"@dvcorg/gatsby-theme-iterative": "^0.1.19",
42+
"@dvcorg/gatsby-theme-iterative": "^0.1.23",
4343
"@dvcorg/websites-server": "^0.0.10",
4444
"@emotion/react": "^11.10.4",
4545
"@emotion/styled": "^11.10.4",

src/components/molecules/HamburgerMenu/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import cn from 'classnames'
44
import HamburgerIcon from '../HamburgerIcon'
55
import Link from '../../atoms/Link'
66
import SiteLogo from '../SiteLogo'
7-
import { logEvent } from '../../../utils/front/plausible'
7+
import { logEvent } from '@dvcorg/gatsby-theme-iterative/src/utils/front/plausible'
88

99
import { getFirstPage } from '../../../utils/shared/sidebar'
1010

src/components/organisms/Page/DefaultSEO/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ const SEO: React.FC<ISEOProps> = ({
155155
<script
156156
defer
157157
data-domain="cml.dev"
158-
src="https://dvc.org/pl/js/script.js"
159-
data-api="https://dvc.org/pl/api/event"
158+
src="/pl/js/plausible.outbound-links.js"
159+
data-api="/pl/api/event"
160160
></script>
161161
</Helmet>
162162
)

src/components/organisms/SubscribeSection/Form/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { EventHandler, SyntheticEvent, useCallback, useRef } from 'react'
22
import { nanoid } from 'nanoid'
33

4-
import { logEvent } from '../../../../utils/front/plausible'
4+
import { logEvent } from '@dvcorg/gatsby-theme-iterative/src/utils/front/plausible'
55

66
import * as styles from './styles.module.css'
77

src/utils/front/plausible.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,10 +1198,10 @@
11981198
unist-util-remove-position "^4.0.1"
11991199
unist-util-visit "^4.1.0"
12001200

1201-
"@dvcorg/gatsby-theme-iterative@^0.1.19":
1202-
version "0.1.19"
1203-
resolved "https://registry.yarnpkg.com/@dvcorg/gatsby-theme-iterative/-/gatsby-theme-iterative-0.1.19.tgz#c21a02ea0045e08b33d0674348d5e9af771acaa4"
1204-
integrity sha512-86N4k6HNQgOnb4384DC31fW4zmOLliBxKJFfhJcs7+SpvP0PSBhCTkmDw0e2qMmZwABh48LyH25aZM7RiJ26/g==
1201+
"@dvcorg/gatsby-theme-iterative@^0.1.23":
1202+
version "0.1.23"
1203+
resolved "https://registry.yarnpkg.com/@dvcorg/gatsby-theme-iterative/-/gatsby-theme-iterative-0.1.23.tgz#8e13533008999fa8398a69525f920557a00bce45"
1204+
integrity sha512-LrEQvAHL0fPRsHw7Ymi4DNxw7H6CHJnIPQYbGbj1h8PI+IvBoTrnhpLoGtOPJSna/EUILrErWP+i1FSFcP1oAQ==
12051205
dependencies:
12061206
"@reach/portal" "^0.17.0"
12071207
"@reach/router" "^1.3.4"

0 commit comments

Comments
 (0)