Started refactoring, added prettier and checks and reformatted project, added cspell and checks and custom project words, beginning of robotic oceanographic surface sampler content
This commit is contained in:
@@ -1,46 +1,53 @@
|
||||
---
|
||||
import '@styles/global.css'
|
||||
import "@styles/global.css";
|
||||
|
||||
import Navbar from '@components/Navbar.astro';
|
||||
import Footer from '@components/Footer.astro';
|
||||
import Navbar from "@components/Navbar.astro";
|
||||
import Footer from "@components/Footer.astro";
|
||||
|
||||
import {pathToMetadata} from "@data/site-layout.ts";
|
||||
import { pathToMetadata } from "@data/site-layout.ts";
|
||||
|
||||
|
||||
const pageTitle = Astro.props.title ? `${Astro.props.title} - Corwin Perren` : "Corwin Perren";
|
||||
const pageTitle = Astro.props.title
|
||||
? `${Astro.props.title} - Corwin Perren`
|
||||
: "Corwin Perren";
|
||||
const showTitle = Astro.props.showTitle ?? true;
|
||||
const pageEnabled = pathToMetadata(Astro.url.pathname).enabled ?? true;
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
|
||||
<link rel="icon" href="/48x48-favicon.png" type="image/x-icon"/>
|
||||
<link rel="icon" href="/512x512-favicon.png" type="image/png"/>
|
||||
<link rel="icon" href="/192x192-favicon.png" type="image/png"/>
|
||||
<link rel="icon" href="/180x180-favicon.png" type="image/png"/>
|
||||
<link rel="icon" href="/48x48-favicon.png" type="image/png"/>
|
||||
<link rel="icon" href="/32x32-favicon.png" type="image/png"/>
|
||||
<link rel="icon" href="/16x16-favicon.png" type="image/png"/>
|
||||
<link rel="icon" href="/48x48-favicon.png" type="image/x-icon" />
|
||||
<link rel="icon" href="/512x512-favicon.png" type="image/png" />
|
||||
<link rel="icon" href="/192x192-favicon.png" type="image/png" />
|
||||
<link rel="icon" href="/180x180-favicon.png" type="image/png" />
|
||||
<link rel="icon" href="/48x48-favicon.png" type="image/png" />
|
||||
<link rel="icon" href="/32x32-favicon.png" type="image/png" />
|
||||
<link rel="icon" href="/16x16-favicon.png" type="image/png" />
|
||||
|
||||
<link rel="sitemap" href="/sitemap-index.xml"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<link rel="sitemap" href="/sitemap-index.xml" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>{pageEnabled ? pageTitle : "Corwin Perren"}</title>
|
||||
</head>
|
||||
<body class="flex flex-col bg-black text-white h-dvh w-full max-w-full">
|
||||
<div id="content-body-scrolling" class="grow overflow-x-hidden overflow-y-scroll">
|
||||
<Navbar/>
|
||||
<main class="mx-6 my-6">
|
||||
{(Astro.props.title && showTitle && pageEnabled) && (
|
||||
<h1 class="font-extrabold md:text-3xl md:mb-6">{Astro.props.title}</h1>
|
||||
)}
|
||||
{pageEnabled && (
|
||||
<slot/>
|
||||
)}
|
||||
</main>
|
||||
</div>
|
||||
<Footer/>
|
||||
<script src="../scripts/main.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
</head>
|
||||
<body class="flex h-dvh w-full max-w-full flex-col bg-black text-white">
|
||||
<div
|
||||
id="content-body-scrolling"
|
||||
class="grow overflow-x-hidden overflow-y-scroll"
|
||||
>
|
||||
<Navbar />
|
||||
<main class="mx-6 my-6">
|
||||
{
|
||||
Astro.props.title && showTitle && pageEnabled && (
|
||||
<h1 class="font-extrabold md:mb-6 md:text-3xl">
|
||||
{Astro.props.title}
|
||||
</h1>
|
||||
)
|
||||
}
|
||||
{pageEnabled && <slot />}
|
||||
</main>
|
||||
</div>
|
||||
<Footer />
|
||||
<script src="../scripts/main.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user