Skip to content

Commit

Permalink
Add description to index.page
Browse files Browse the repository at this point in the history
  • Loading branch information
midudev committed Feb 27, 2024
1 parent 0543b51 commit 8fae982
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
14 changes: 7 additions & 7 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
import "@fontsource-variable/jost"
interface Props {
description: string
title: string
}
const { title } = Astro.props
const descriptionPage =
"Web oficial de La Velada IV, evento de boxeo entre streamers y creadores de contenido, organizado por Ibai Llanos"
const { title, description } = Astro.props
---

<!doctype html>
Expand All @@ -16,7 +15,7 @@ const descriptionPage =
<title>{title}</title>

<meta charset="UTF-8" />
<meta name="description" content={descriptionPage} />
<meta name="description" content={description} />

<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="canonical" href="https://lavelada.es" />
Expand All @@ -26,14 +25,14 @@ const descriptionPage =

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@infoLaVelada" />
<meta name="twitter:creator" content="@ibai" />
<meta name="twitter:creator" content="@IbaiLlanos" />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={descriptionPage} />
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content="/og.jpg" />

<meta name="og:image" content="/og.jpg" />
<meta name="og:title" content={title} />
<meta name="og:description" content={descriptionPage} />
<meta name="og:description" content={description} />
<meta name="og:url" content="https://lavelada.es" />
<meta name="og:site_name" content="La Velada 4" />
<meta name="og:type" content="website" />
Expand All @@ -42,6 +41,7 @@ const descriptionPage =
<meta name="robots" content="index, follow" />
<meta name="googlebot" content="index, follow" />
</head>

<body>
<div class="container relative -z-10 mx-auto w-screen overflow-x-clip">
<img
Expand Down
21 changes: 12 additions & 9 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ import Info from "@/sections/Info.astro"
import PrincipalDate from "@/sections/PrincipalDate.astro"
---

<Layout title="La Velada 4 - Evento de Boxeo de Ibai Llanos">
<Hero />
<main>
<PrincipalDate />
<Info />
<Countdown />
</main>
<Footer />
<KonamiCode />
<Layout
description="Web oficial de La Velada IV, evento de boxeo entre streamers y creadores de contenido, organizado por Ibai Llanos"
title="La Velada 4 - Evento de Boxeo de Ibai Llanos"
>
<Hero />
<main>
<PrincipalDate />
<Info />
<Countdown />
</main>
<Footer />
<KonamiCode />
</Layout>

0 comments on commit 8fae982

Please sign in to comment.