set up Biome

This commit is contained in:
2025-10-28 17:17:41 -04:00
parent 5a5c72850d
commit a1ea385448
39 changed files with 2476 additions and 719 deletions
+3 -2
View File
@@ -1,7 +1,8 @@
---
import { Image } from 'astro:assets';
import portrait from '../assets/portrait.jpg';
import { Image } from "astro:assets";
import portrait from "../assets/portrait.jpg";
interface Props {
size: number;
+3 -2
View File
@@ -1,7 +1,8 @@
---
import { format, add } from 'date-fns';
import CalendarIcon from '../assets/svg/calendar.svg';
import { add, format } from "date-fns";
import CalendarIcon from "../assets/svg/calendar.svg";
interface Props {
title: string;
+1
View File
@@ -1,4 +1,5 @@
---
interface Props {
title?: string;
image?: ImageMetadata;
+3 -2
View File
@@ -1,6 +1,7 @@
---
import RssIcon from '../assets/svg/rss.svg';
import MastodonIcon from '../assets/svg/mastodon.svg';
import MastodonIcon from "../assets/svg/mastodon.svg";
import RssIcon from "../assets/svg/rss.svg";
const year = new Date().getFullYear();
---
+4 -3
View File
@@ -1,8 +1,9 @@
---
import BarsIcon from '../../assets/svg/bars.svg';
import CloseIcon from '../../assets/svg/xmark.svg';
import { navLinks } from '../../data/nav-links';
import BarsIcon from "../../assets/svg/bars.svg";
import CloseIcon from "../../assets/svg/xmark.svg";
import { navLinks } from "../../data/nav-links";
---
<!-- drawerOpened is defined in /src/layouts/Layout.astro -->
+3 -2
View File
@@ -1,6 +1,7 @@
---
import Nav from './Nav.astro';
import Drawer from './Drawer.astro';
import Drawer from "./Drawer.astro";
import Nav from "./Nav.astro";
---
<header>
+1 -3
View File
@@ -1,4 +1,5 @@
---
import { navLinks } from '../../data/nav-links';
const { pathname } = Astro.url;
@@ -43,9 +44,6 @@ const pathComponents = pathname.split('/').slice(1);
opacity: 1;
}
.selected {
}
.underline {
height: 2px;
width: 100%;
+5 -4
View File
@@ -1,10 +1,11 @@
---
import BlogHeader from '@components/BlogHeader.astro';
import Tags from '@components/Tags.astro';
import type { CollectionEntry } from 'astro:content';
import type { CollectionEntry } from "astro:content";
import BlogHeader from "@components/BlogHeader.astro";
import Tags from "@components/Tags.astro";
interface Props {
post: CollectionEntry<'blog'>;
post: CollectionEntry<"blog">;
}
const { post } = Astro.props;
+1
View File
@@ -1,4 +1,5 @@
---
interface Props {
tags: string[];
}