renew navbar, edit resources page
This commit is contained in:
@ -1,12 +1,13 @@
|
||||
---
|
||||
import Header from "@/components/header.astro";
|
||||
import Navigation from "@/components/ navigation";
|
||||
import Footer from "@/components/footer";
|
||||
import Navbar from "@/components/navbar.astro";
|
||||
import "@/styles/globals.css";
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
description: string;
|
||||
lang?: string;
|
||||
title: string;
|
||||
description: string;
|
||||
lang?: string;
|
||||
}
|
||||
|
||||
const { title, description, lang } = Astro.props;
|
||||
@ -14,32 +15,33 @@ const { title, description, lang } = Astro.props;
|
||||
|
||||
<!doctype html>
|
||||
<html lang={lang || "en"}>
|
||||
<head>
|
||||
<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("rss.xml", Astro.site)}
|
||||
/>
|
||||
<link rel="sitemap" href="/sitemap-index.xml" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<title>{title}</title>
|
||||
</head>
|
||||
<body>
|
||||
<Navbar />
|
||||
<main class="px-4 min-h-screen max-w-[65ch] py-28 mx-auto">
|
||||
<slot />
|
||||
</main>
|
||||
<Footer />
|
||||
</body>
|
||||
<head>
|
||||
<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("rss.xml", Astro.site)}
|
||||
/>
|
||||
<link rel="sitemap" href="/sitemap-index.xml" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<title>{title}</title>
|
||||
</head>
|
||||
<body>
|
||||
<Header />
|
||||
<main class="px-4 sm:px-0 max-w-[65ch] pt-28 pb-14 mx-auto">
|
||||
<slot />
|
||||
</main>
|
||||
<Navigation />
|
||||
<Footer />
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user