Fix images dimensions and favicon (#19)

* fix video url

* update deploy script for using rsync

* remove delete from script

* translate resources page

* fix images dimensions and favicon
This commit is contained in:
Juan Manzanero
2024-10-11 11:18:20 -06:00
committed by GitHub
parent f35ce9b4c7
commit ad026953da
7 changed files with 65 additions and 3248 deletions

View File

@ -2,8 +2,8 @@
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 { getLangFromUrl } from "../i18n/utils";
interface Props {
title: string;
@ -11,7 +11,6 @@ interface Props {
}
const lang = getLangFromUrl(Astro.url);
const { title, description } = Astro.props;
---
@ -20,25 +19,27 @@ const { title, description } = Astro.props;
<meta charset="UTF-8" />
<meta name="description" content={description} />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link
rel="alternate icon"
href="/favicon.ico"
type="image/png"
sizes="16x16"
/>
<link
rel="alternate"
title="juancmandev"
type="application/rss+xml"
href={new URL("feed.xml", Astro.site)}
/>
<link
rel="alternate"
title="juancmandev"
type="application/rss+xml"
href={new URL("feed.xml", `${Astro.site}/es/`)}
/>
<link rel="icon" type="image/png" href="/logo.png" sizes="16x16" />
{
lang === "en" && (
<link
rel="alternate"
title="juancmandev"
type="application/rss+xml"
href={new URL("feed.xml", Astro.site)}
/>
)
}
{
lang === "es" && (
<link
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} />
<title>{title}</title>