style: Biome check, lint and format
This commit is contained in:
parent
23050eea56
commit
e75e001368
10 changed files with 13 additions and 12 deletions
|
@ -12,6 +12,7 @@ export default function Greeting({ messages }) {
|
||||||
<button
|
<button
|
||||||
class="greetButton px-2 rounded-xl"
|
class="greetButton px-2 rounded-xl"
|
||||||
onClick={() => setGreeting(randomMessage())}
|
onClick={() => setGreeting(randomMessage())}
|
||||||
|
type="submit"
|
||||||
>
|
>
|
||||||
New Greeting
|
New Greeting
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
// Import utilities from `astro:content`
|
||||||
|
import { defineCollection, z } from "astro:content";
|
||||||
// Import the glob loader
|
// Import the glob loader
|
||||||
import { glob } from "astro/loaders";
|
import { glob } from "astro/loaders";
|
||||||
// Import utilities from `astro:content`
|
|
||||||
import { z, defineCollection } from "astro:content";
|
|
||||||
// Define a `loader` and `schema` for each collection
|
// Define a `loader` and `schema` for each collection
|
||||||
const blog = defineCollection({
|
const blog = defineCollection({
|
||||||
loader: glob({ pattern: "**/[^_]*.md", base: "./src/blog" }),
|
loader: glob({ pattern: "**/[^_]*.md", base: "./src/blog" }),
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
import NavHeader from "../components/NavHeader.astro";
|
|
||||||
import Favicon from "../components/Favicon.astro";
|
import Favicon from "../components/Favicon.astro";
|
||||||
import Footer from "../components/Footer.astro";
|
import Footer from "../components/Footer.astro";
|
||||||
|
import NavHeader from "../components/NavHeader.astro";
|
||||||
import "../styles/aria.css";
|
import "../styles/aria.css";
|
||||||
import EmbedCode from "../components/EmbedCode.astro";
|
import EmbedCode from "../components/EmbedCode.astro";
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
---
|
---
|
||||||
import { getCollection } from "astro:content";
|
import { getCollection } from "astro:content";
|
||||||
|
|
||||||
import BaseLayout from "../layouts/BaseLayout.astro";
|
|
||||||
import BlogEntry from "../components/BlogEntry.astro";
|
import BlogEntry from "../components/BlogEntry.astro";
|
||||||
import Partition from "../components/Partition.astro";
|
import Partition from "../components/Partition.astro";
|
||||||
|
import BaseLayout from "../layouts/BaseLayout.astro";
|
||||||
const allPosts = await getCollection("blog");
|
const allPosts = await getCollection("blog");
|
||||||
|
|
||||||
const pageTitle = "Aria's blog";
|
const pageTitle = "Aria's blog";
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
import FriendLink from "../components/FriendLink.astro";
|
import FriendLink from "../components/FriendLink.astro";
|
||||||
import "../styles/aria.css";
|
import "../styles/aria.css";
|
||||||
import BaseLayout from "../layouts/BaseLayout.astro";
|
|
||||||
import Partition from "../components/Partition.astro";
|
import Partition from "../components/Partition.astro";
|
||||||
|
import BaseLayout from "../layouts/BaseLayout.astro";
|
||||||
|
|
||||||
const pageTitle = "Aria's friends";
|
const pageTitle = "Aria's friends";
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
---
|
---
|
||||||
import Partition from "../components/Partition.astro";
|
import Partition from "../components/Partition.astro";
|
||||||
|
|
||||||
import BaseLayout from "../layouts/BaseLayout.astro";
|
|
||||||
import Greeting from "../components/Greeting";
|
import Greeting from "../components/Greeting";
|
||||||
import Social from "../components/Social.astro";
|
import Social from "../components/Social.astro";
|
||||||
|
import BaseLayout from "../layouts/BaseLayout.astro";
|
||||||
const pageTitle = "Aria";
|
const pageTitle = "Aria";
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
import FriendLink from "../components/FriendLink.astro";
|
import FriendLink from "../components/FriendLink.astro";
|
||||||
import "../styles/aria.css";
|
import "../styles/aria.css";
|
||||||
import BaseLayout from "../layouts/BaseLayout.astro";
|
|
||||||
import Partition from "../components/Partition.astro";
|
import Partition from "../components/Partition.astro";
|
||||||
|
import BaseLayout from "../layouts/BaseLayout.astro";
|
||||||
|
|
||||||
const pageTitle = "Aria's friends";
|
const pageTitle = "Aria's friends";
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import rss from "@astrojs/rss";
|
|
||||||
import { getCollection } from "astro:content";
|
import { getCollection } from "astro:content";
|
||||||
|
import rss from "@astrojs/rss";
|
||||||
|
|
||||||
export async function GET(context) {
|
export async function GET(context) {
|
||||||
const posts = await getCollection("blog");
|
const posts = await getCollection("blog");
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
---
|
---
|
||||||
import { getCollection } from "astro:content";
|
import { getCollection } from "astro:content";
|
||||||
|
|
||||||
import BaseLayout from "../../layouts/BaseLayout.astro";
|
|
||||||
import BlogEntry from "../../components/BlogEntry.astro";
|
import BlogEntry from "../../components/BlogEntry.astro";
|
||||||
import Partition from "../../components/Partition.astro";
|
import Partition from "../../components/Partition.astro";
|
||||||
|
import BaseLayout from "../../layouts/BaseLayout.astro";
|
||||||
|
|
||||||
export async function getStaticPaths() {
|
export async function getStaticPaths() {
|
||||||
const allPosts = await getCollection("blog");
|
const allPosts = await getCollection("blog");
|
||||||
|
|
||||||
const uniqueTags = [
|
const uniqueTags = [
|
||||||
...new Set(allPosts.map((post: any) => post.data.tags).flat()),
|
...new Set(allPosts.flatMap((post: any) => post.data.tags)),
|
||||||
];
|
];
|
||||||
|
|
||||||
return uniqueTags.map((tag) => {
|
return uniqueTags.map((tag) => {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
---
|
---
|
||||||
import { getCollection } from "astro:content";
|
import { getCollection } from "astro:content";
|
||||||
|
|
||||||
import BaseLayout from "../../layouts/BaseLayout.astro";
|
|
||||||
import Partition from "../../components/Partition.astro";
|
import Partition from "../../components/Partition.astro";
|
||||||
|
import BaseLayout from "../../layouts/BaseLayout.astro";
|
||||||
const allPosts = await getCollection("blog");
|
const allPosts = await getCollection("blog");
|
||||||
const tags = [...new Set(allPosts.map((post: any) => post.data.tags).flat())];
|
const tags = [...new Set(allPosts.flatMap((post: any) => post.data.tags))];
|
||||||
const pageTitle = "Tag Index";
|
const pageTitle = "Tag Index";
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue