Prettier config
This commit is contained in:
+12
-12
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user