chore: run prettier on Astro files
This commit is contained in:
parent
a489a2ca02
commit
40d8e58cce
17 changed files with 1005 additions and 330 deletions
|
|
@ -1,76 +1,93 @@
|
|||
---
|
||||
import '../../assets/css/tailwind.pcss'
|
||||
import "../../assets/css/tailwind.pcss";
|
||||
|
||||
import Navbar from '../components/Navbar.astro'
|
||||
import Navbar from "../components/Navbar.astro";
|
||||
|
||||
export interface Props {
|
||||
title: string;
|
||||
title: string;
|
||||
}
|
||||
|
||||
const { title } = Astro.props;
|
||||
|
||||
interface Link {
|
||||
title: string,
|
||||
href: string,
|
||||
title: string;
|
||||
href: string;
|
||||
}
|
||||
|
||||
const footerLinks = [
|
||||
{
|
||||
title: 'About',
|
||||
href: '/',
|
||||
},
|
||||
{
|
||||
title: 'Blog',
|
||||
href: '/blog',
|
||||
},
|
||||
{
|
||||
title: 'Talks',
|
||||
href: '/talks',
|
||||
},
|
||||
{
|
||||
title: 'Daily list',
|
||||
href: '/daily',
|
||||
},
|
||||
{
|
||||
title: 'Search',
|
||||
href: '/search',
|
||||
},
|
||||
]
|
||||
title: "About",
|
||||
href: "/",
|
||||
},
|
||||
{
|
||||
title: "Blog",
|
||||
href: "/blog",
|
||||
},
|
||||
{
|
||||
title: "Talks",
|
||||
href: "/talks",
|
||||
},
|
||||
{
|
||||
title: "Daily list",
|
||||
href: "/daily",
|
||||
},
|
||||
{
|
||||
title: "Search",
|
||||
href: "/search",
|
||||
},
|
||||
];
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300;0,400;0,700;1,300&display=swap" rel="stylesheet">
|
||||
<title>{title}</title>
|
||||
<script defer data-domain="oliverdavies.uk" src="https://plausible.io/js/plausible.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="min-h-screen font-sans text-base font-light text-grey-900 md:text-xl dark:text-white dark:bg-grey-900">
|
||||
<Navbar />
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300;0,400;0,700;1,300&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<title>{title}</title>
|
||||
<script
|
||||
defer
|
||||
data-domain="oliverdavies.uk"
|
||||
src="https://plausible.io/js/plausible.js"
|
||||
></script>
|
||||
</head>
|
||||
<body>
|
||||
<div
|
||||
class="min-h-screen font-sans text-base font-light text-grey-900 md:text-xl dark:text-white dark:bg-grey-900"
|
||||
>
|
||||
<Navbar />
|
||||
|
||||
<div class="py-10 px-4 mx-auto max-w-2xl md:py-10">
|
||||
<h1 class="mb-4 text-xl font-bold md:text-2xl">{title}</h1>
|
||||
<div class="py-10 px-4 mx-auto max-w-2xl md:py-10">
|
||||
<h1 class="mb-4 text-xl font-bold md:text-2xl">{title}</h1>
|
||||
|
||||
<main>
|
||||
<slot />
|
||||
</main>
|
||||
<main>
|
||||
<slot />
|
||||
</main>
|
||||
|
||||
<div class="mt-16 mb-6">
|
||||
<footer>
|
||||
<nav class="flex flex-wrap justify-center -mb-3">
|
||||
{footerLinks && footerLinks.map(link => (
|
||||
<a class="mx-3 mb-3 text-sm md:text-lg dark:text-white hover:text-grey-900 link dark:hover:text-blue-400" href={link.href}>{link.title}</a>
|
||||
))}
|
||||
</nav>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<div class="mt-16 mb-6">
|
||||
<footer>
|
||||
<nav class="flex flex-wrap justify-center -mb-3">
|
||||
{
|
||||
footerLinks &&
|
||||
footerLinks.map((link) => (
|
||||
<a
|
||||
class="mx-3 mb-3 text-sm md:text-lg dark:text-white hover:text-grey-900 link dark:hover:text-blue-400"
|
||||
href={link.href}
|
||||
>
|
||||
{link.title}
|
||||
</a>
|
||||
))
|
||||
}
|
||||
</nav>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue