Migrate to Astro V5 (#22)

* fix video url

* update deploy script for using rsync

* remove delete from script

* translate resources page

* fix images dimensions and favicon

* add css optimization plugin and improve images

* update project dependencies

* refactor lang

* post translated to spanish

* fix metadata

* update dependencies

* update dependencies

* update dependencies

* update to Astro 5.x

* format index.astro

* Migrate content layer to Astro V5
This commit is contained in:
Juan Manzanero
2025-02-01 17:33:00 -06:00
committed by GitHub
parent 9363bf7a20
commit 4f0e80b988
46 changed files with 2265 additions and 2034 deletions

View File

@ -1,9 +1,9 @@
---
import Header from "@/components/header.astro";
import Navigation from "@/components/navigation";
import Footer from "@/components/footer";
import { getLangFromUrl } from "@/i18n/utils";
import "@/styles/globals.css";
import Header from '@/components/header.astro';
import Navigation from '@/components/navigation';
import Footer from '@/components/footer';
import { getLangFromUrl } from '@/i18n/utils';
import '@/styles/globals.css';
interface Props {
title: string;
@ -16,37 +16,54 @@ const { title, description } = Astro.props;
<html lang={lang}>
<head>
<meta charset="UTF-8" />
<meta name="description" content={description} />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/png" href="/logo.png" sizes="16x16" />
<meta charset='UTF-8' />
<meta
name='description'
content={description}
/>
<meta
name='viewport'
content='width=device-width'
/>
<link
rel='icon'
type='image/png'
href='/logo.png'
sizes='16x16'
/>
{
lang === "en" && (
lang === 'en' && (
<link
rel="alternate"
title="juancmandev"
type="application/rss+xml"
href={new URL("feed.xml", Astro.site)}
rel='alternate'
title='juancmandev'
type='application/rss+xml'
href={new URL('feed.xml', Astro.site)}
/>
)
}
{
lang === "es" && (
lang === 'es' && (
<link
rel="alternate"
title="juancmandev"
type="application/rss+xml"
href={new URL("feed.xml", `${Astro.site}/es/`)}
rel='alternate'
title='juancmandev'
type='application/rss+xml'
href={new URL('feed.xml', `${Astro.site}/es/`)}
/>
)
}
<link rel="sitemap" href="/sitemap-index.xml" />
<meta name="generator" content={Astro.generator} />
<link
rel='sitemap'
href='/sitemap-index.xml'
/>
<meta
name='generator'
content={Astro.generator}
/>
<title>{title}</title>
</head>
<body>
<Header lang={lang} />
<main class="px-4 sm:px-0 max-w-[65ch] pt-28 pb-5 mx-auto">
<main class='px-4 sm:px-0 max-w-[65ch] pt-28 pb-5 mx-auto'>
<slot />
</main>
<Navigation lang={lang} />