set up Biome
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,4 +1,5 @@
|
||||
---
|
||||
|
||||
interface Props {
|
||||
title?: string;
|
||||
image?: ImageMetadata;
|
||||
|
||||
@@ -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();
|
||||
---
|
||||
|
||||
@@ -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 -->
|
||||
|
||||
@@ -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,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%;
|
||||
|
||||
@@ -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,4 +1,5 @@
|
||||
---
|
||||
|
||||
interface Props {
|
||||
tags: string[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user