Skip to content

Commit

Permalink
Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemulley committed Jan 23, 2024
1 parent 52aeee5 commit a2207a7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from "astro/config";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import { defineConfig } from "astro/config";

// https://astro.build/config
export default defineConfig({
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const links = [
<a href="/" class="inline-flex">
<img
src="/images/profile.jpeg"
class="rounded-full w-24"
class="w-24 rounded-full"
alt="Jake Mulley's headshot"
/>
<span class="sr-only">Jake Mulley</span>
Expand All @@ -31,7 +31,7 @@ const links = [
<li>
<a
href={link.url}
class="font-medium text-[var(--tw-prose-links)] underline decoration-valencia-500 decoration-2 underline-offset-2 hover:bg-valencia-500 hover:text-white border-2 border-transparent hover:border-valencia-500"
class="border-2 border-transparent font-medium text-[var(--tw-prose-links)] underline decoration-valencia-500 decoration-2 underline-offset-2 hover:border-valencia-500 hover:bg-valencia-500 hover:text-white"
>
{link.title}
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/content/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { z, defineCollection } from "astro:content";
import { defineCollection, z } from "astro:content";

const blog = defineCollection({
type: "content",
Expand Down
10 changes: 5 additions & 5 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import BlogPostList from "../components/BlogPostList.astro";
import Footer from "../components/Footer.astro";
import Header from "../components/Header.astro";
import BlogPostList from "../components/BlogPostList.astro";
import site from "../data/site.json";
const { title, description } = Astro.props;
Expand Down Expand Up @@ -76,17 +76,17 @@ const url = Astro.url.pathname;
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.webmanifest" />
</head>
<body class="antialiased bg-white dark:bg-slate-900">
<body class="bg-white antialiased dark:bg-slate-900">
<a
href="#main"
id="skip-link"
class="absolute w-px h-px m-0 overflow-hidden whitespace-nowrap underline block focus:absolute focus:w-auto focus:h-auto focus:overflow-visible focus:z-10"
class="absolute m-0 block h-px w-px overflow-hidden whitespace-nowrap underline focus:absolute focus:z-10 focus:h-auto focus:w-auto focus:overflow-visible"
>Skip to main content</a
>

<div class="max-w-2xl mx-auto p-8">
<div class="mx-auto max-w-2xl p-8">
<div
class="max-w-none prose prose-slate dark:prose-invert lg:prose-lg prose-a:underline prose-a:decoration-valencia-500 prose-a:decoration-2 prose-a:underline-offset-2 hover:prose-a:bg-valencia-500 hover:prose-a:text-white prose-a:border-2 prose-a:border-transparent hover:prose-a:border-valencia-500 prose-img:rounded-md lg:prose-img:rounded-lg"
class="prose prose-slate max-w-none lg:prose-lg dark:prose-invert prose-a:border-2 prose-a:border-transparent prose-a:underline prose-a:decoration-valencia-500 prose-a:decoration-2 prose-a:underline-offset-2 hover:prose-a:border-valencia-500 hover:prose-a:bg-valencia-500 hover:prose-a:text-white prose-img:rounded-md lg:prose-img:rounded-lg"
>
<Header />
<main id="main" tabindex="-1">
Expand Down
4 changes: 2 additions & 2 deletions src/pages/blog/[...page].astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import { getCollection } from "astro:content";
import PageLayout from "../../layouts/Page.astro";
import BlogPostList from "../../components/BlogPostList.astro";
import PageLayout from "../../layouts/Page.astro";
export async function getStaticPaths() {
const blogEntries = await getCollection("blog");
Expand All @@ -16,6 +16,6 @@ const frontmatter = {
};
---

<PageLayout frontmatter={frontmatter}>
<PageLayout {frontmatter}>
<BlogPostList />
</PageLayout>

0 comments on commit a2207a7

Please sign in to comment.