Skip to content

Commit f64fc39

Browse files
authored
Move scarf pixel to the bottom, to fix layout (#714)
1 parent e015e39 commit f64fc39

2 files changed

Lines changed: 13 additions & 10 deletions

File tree

spiceaidocs/docusaurus.config.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,6 @@ const config: Config = {
3333
locales: ['en'],
3434
},
3535

36-
headTags: [
37-
{
38-
tagName: 'img',
39-
attributes: {
40-
referrerPolicy: 'no-referrer-when-downgrade',
41-
src: 'https://static.scarf.sh/a.png?x-pxid=d13c8a61-d145-479a-92dc-6a231eddbb3e',
42-
},
43-
},
44-
],
45-
4636
presets: [
4737
[
4838
'classic',

spiceaidocs/src/theme/Root.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React, { type PropsWithChildren } from "react";
2+
3+
export default function Root({ children }: PropsWithChildren) {
4+
return (
5+
<>
6+
{children}
7+
<img
8+
referrerPolicy="no-referrer-when-downgrade"
9+
src="https://static.scarf.sh/a.png?x-pxid=d13c8a61-d145-479a-92dc-6a231eddbb3e"
10+
/>
11+
</>
12+
);
13+
}

0 commit comments

Comments
 (0)