Prettier config

This commit is contained in:
2023-02-25 17:56:35 +00:00
parent eaa1ccfd9e
commit b60f598ba2
17 changed files with 1381 additions and 220 deletions
+12 -12
View File
@@ -1,19 +1,19 @@
---
export const prerender = true;
import Layout from "@layouts/Layout.astro";
export const prerender = true
import Layout from '@layouts/Layout.astro'
const styles = {
img: {
display: "block",
maxWidth: "300px",
margin: "auto",
marginBottom: "26px",
borderRadius: "200px",
},
};
img: {
display: 'block',
maxWidth: '300px',
margin: 'auto',
marginBottom: '26px',
borderRadius: '200px',
},
}
---
<Layout title="About">
<img src="/portrait.jpg" alt="me" style={styles.img} />
<slot />
<img src="/portrait.jpg" alt="me" style={styles.img} />
<slot />
</Layout>
+24 -24
View File
@@ -1,36 +1,36 @@
---
import "@styles/global.css";
import '@styles/global.css'
import Header from "@components/Header.astro";
import Footer from "@components/Footer.astro";
import Header from '@components/Header.astro'
import Footer from '@components/Footer.astro'
export interface Props {
title: string;
title: string
}
const title = Astro.props.frontmatter
? Astro.props.frontmatter.title
: Astro.props.title;
? Astro.props.frontmatter.title
: Astro.props.title
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<meta
name="description"
content="My personal blog about life, gaming, tech, and whatever else I feel like writing about."
/>
<title>{`ghall.blog - ${title}`}</title>
</head>
<body class="container">
<Header />
<main>
<slot />
</main>
<Footer />
</body>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<meta
name="description"
content="My personal blog about life, gaming, tech, and whatever else I feel like writing about."
/>
<title>{`ghall.blog - ${title}`}</title>
</head>
<body class="container">
<Header />
<main>
<slot />
</main>
<Footer />
</body>
</html>