chore: updates
Signed-off-by: Filipe Medeiros <hello@filipesm.eu>
This commit is contained in:
parent
5055219fe8
commit
7389c10b4b
|
@ -17,14 +17,14 @@
|
|||
"@portabletext/react": "^2.0.3",
|
||||
"@sanity/client": "^5.4.2",
|
||||
"@sanity/image-url": "^1.0.2",
|
||||
"astro": "^2.10.4",
|
||||
"astro": "^3.3.2",
|
||||
"astro-portabletext": "^0.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@portabletext/types": "^2.0.5",
|
||||
"autoprefixer": "^10.4.14",
|
||||
"groq": "^3.15.0",
|
||||
"postcss": "^8.4.27",
|
||||
"@portabletext/types": "^2.0.8",
|
||||
"autoprefixer": "^10.4.16",
|
||||
"groq": "^3.18.1",
|
||||
"postcss": "^8.4.31",
|
||||
"tailwindcss": "^3.3.3"
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,15 +1,15 @@
|
|||
---
|
||||
import type { PortableTextBlock } from "@portabletext/types";
|
||||
import client from "../../../lib/cms/client";
|
||||
import { forBlogPostPage } from "../../../lib/cms/queries/blogPosts";
|
||||
import BlogPostContent from "../../../components/portableText/BlogPostContent.astro";
|
||||
import BlogPostSubtitle from "../../../components/portableText/BlogPostSubtitle.astro";
|
||||
import ButtonLink from "../../../components/ButtonLink.astro";
|
||||
import PageTitle from "../../../components/PageTitle.astro";
|
||||
import Layout from "../../../layouts/Layout.astro";
|
||||
import BlogPostMetadata from "../../../components/BlogPostMetadata.astro";
|
||||
import type { ImageObject } from "../../../lib/cms/types";
|
||||
import BlogPostFootnotes from "../../../components/BlogPostFootnotes.astro";
|
||||
import type { PortableTextBlock } from '@portabletext/types';
|
||||
import client from '../../../lib/cms/client';
|
||||
import { forBlogPostPage } from '../../../lib/cms/queries/blogPosts';
|
||||
import BlogPostContent from '../../../components/portableText/BlogPostContent.astro';
|
||||
import BlogPostSubtitle from '../../../components/portableText/BlogPostSubtitle.astro';
|
||||
import ButtonLink from '../../../components/ButtonLink.astro';
|
||||
import PageTitle from '../../../components/PageTitle.astro';
|
||||
import Layout from '../../../layouts/Layout.astro';
|
||||
import BlogPostMetadata from '../../../components/BlogPostMetadata.astro';
|
||||
import type { ImageObject } from '../../../lib/cms/types';
|
||||
import BlogPostFootnotes from '../../../components/BlogPostFootnotes.astro';
|
||||
|
||||
export interface Props {
|
||||
title: string;
|
||||
|
@ -19,7 +19,7 @@ export interface Props {
|
|||
headerImage: ImageObject;
|
||||
summary: string;
|
||||
readTime: string;
|
||||
twitterCardType: "summary" | "summary_large_image" | "player" | "app";
|
||||
twitterCardType: 'summary' | 'summary_large_image' | 'player' | 'app';
|
||||
linkPreviewDescription: string;
|
||||
linkPreviewImage: ImageObject;
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ export async function getStaticPaths() {
|
|||
const posts: (Props & {
|
||||
slug: string;
|
||||
})[] = await client.fetch(forBlogPostPage, {
|
||||
lang: "pt_PT",
|
||||
lang: 'pt_PT',
|
||||
});
|
||||
|
||||
return posts.map(({ slug, ...blogPost }) => {
|
||||
|
@ -74,7 +74,7 @@ const { slug } = Astro.params;
|
|||
<BlogPostSubtitle content={subtitle} />
|
||||
<span class="text-lg sm:text-xl">
|
||||
<time datetime={publishDate}>{publishDate}</time>
|
||||
•
|
||||
•
|
||||
{readTime}
|
||||
</span>
|
||||
</header>
|
||||
|
@ -88,7 +88,7 @@ const { slug } = Astro.params;
|
|||
href="/blogue"
|
||||
class="text-xl sm:text-3xl flex-1 py-1 sm:py-2 flex justify-center px-2"
|
||||
>
|
||||
Blog
|
||||
Blogue
|
||||
</ButtonLink>
|
||||
<ButtonLink
|
||||
href="/biblioteca"
|
||||
|
|
Loading…
Reference in a new issue