fix: footnote

Signed-off-by: Filipe Medeiros <hello@filipesm.eu>
This commit is contained in:
Filipe Medeiros 2023-05-19 13:59:22 +01:00
parent 5d2c44d838
commit 925c1f95b2
Signed by: filipe
GPG key ID: 9533BD5467CC1E78
5 changed files with 1565 additions and 1677 deletions

View file

@ -11,18 +11,18 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/tailwind": "^3.1.1",
"@portabletext/react": "^2.0.2",
"@astrojs/tailwind": "^3.1.3",
"@portabletext/react": "^2.0.3",
"@sanity/client": "^5.4.2",
"@sanity/image-url": "^1.0.2",
"astro": "^2.2.1",
"astro-portabletext": "^0.8.0"
"astro": "^2.5.0",
"astro-portabletext": "^0.8.1"
},
"devDependencies": {
"@portabletext/types": "^2.0.2",
"autoprefixer": "^10.4.14",
"groq": "^3.8.3",
"postcss": "^8.4.21",
"tailwindcss": "^3.3.1"
"groq": "^3.11.1",
"postcss": "^8.4.23",
"tailwindcss": "^3.3.2"
}
}

File diff suppressed because it is too large Load diff

View file

@ -3,7 +3,7 @@ import type { AstroGlobal } from 'astro';
export default function langToFootnoteString(Astro: Readonly<AstroGlobal>) {
let footnoteString: string;
if (Astro.url.pathname.includes('/blogue/')) footnoteString = 'rodape';
else if (Astro.url.pathname.includes('/blog/')) footnoteString = 'footnot';
else if (Astro.url.pathname.includes('/blog/')) footnoteString = 'footnote';
else
throw new Error(
'Please add the new language to the `langToFootnoteString` function',

View file

@ -17,22 +17,22 @@
"dependencies": {
"@portabletext/toolkit": "^2.0.1",
"@sanity/document-internationalization": "^1.1.1",
"@sanity/icons": "^2.2.2",
"@sanity/vision": "^3.8.3",
"@sanity/icons": "^2.3.1",
"@sanity/vision": "^3.11.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-is": "^18.2.0",
"sanity": "^3.9.1",
"sanity": "^3.11.1",
"sanity-plugin-asset-source-unsplash": "^1.0.6",
"sanity-plugin-media": "^2.0.5",
"styled-components": "^5.3.9"
"styled-components": "^5.3.10"
},
"devDependencies": {
"@sanity/eslint-config-studio": "^2.0.1",
"@types/react": "^18.0.34",
"@types/react": "^18.2.6",
"@types/styled-components": "^5.1.26",
"eslint": "^8.38.0",
"prettier": "^2.8.7",
"eslint": "^8.40.0",
"prettier": "^2.8.8",
"typescript": "^4.9.5"
},
"prettier": {

File diff suppressed because it is too large Load diff