Use path aliasing

This commit is contained in:
Bad Manners 2024-09-14 17:48:51 -03:00
parent b9155828af
commit f23b3774d4
No known key found for this signature in database
GPG key ID: 8C88292CCB075609
15 changed files with 715 additions and 445 deletions

View file

@ -1,5 +1,5 @@
---
import BaseLayout from "../layouts/BaseLayout.astro";
import BaseLayout from "@layouts/BaseLayout.astro";
---
<BaseLayout pageTitle="Not found">

View file

@ -1,8 +1,8 @@
---
import { Image } from "astro:assets";
import BaseLayout from "../layouts/BaseLayout.astro";
import { IconArrowUpRightFromSquare } from "../components/icons";
import { ImageSamStickerJuicebox } from "../assets/images";
import BaseLayout from "@layouts/BaseLayout.astro";
import { IconArrowUpRightFromSquare } from "@components/icons";
import { ImageSamStickerJuicebox } from "@assets/images";
---
<BaseLayout pageTitle="About me">
@ -41,7 +41,7 @@ import { ImageSamStickerJuicebox } from "../assets/images";
<Image
src={ImageSamStickerJuicebox}
class="u-photo max-w-full transition-transform group-hover:scale-105 motion-reduce:transition-none motion-reduce:group-hover:scale-100"
alt="Sam Brendan with googly eyes and fangs showing from his lips, sipping from the straw of a banana juice box as some of the liquid escapes his mouth. Art by OliveCow."
alt="Sam Brendan with googly eyes and fangs showing from his lips, sipping from the straw of a banana juice box as some of the liquid escapes his mouth. His main feature is the briefcase he has for a face, with a wide maw and googly eyes. Art by OliveCow."
loading="eager"
height={320}
/>

View file

@ -1,7 +1,7 @@
import rss from "@astrojs/rss";
import type { APIRoute } from "astro";
import { set as dateSet, subMinutes } from "date-fns";
import { TOS_FEED } from "../data/tos";
import { TOS_FEED } from "@data/tos";
export const GET: APIRoute = ({ site }) => {
return rss({

View file

@ -1,7 +1,7 @@
---
import { readFile } from "node:fs/promises";
import BaseLayout from "../layouts/BaseLayout.astro";
import { IconEnvelope, IconBriefcase, IconKey, IconLink, IconCommentDots, IconSSH } from "../components/icons";
import BaseLayout from "@layouts/BaseLayout.astro";
import { IconEnvelope, IconBriefcase, IconKey, IconLink, IconCommentDots, IconSSH } from "@components/icons";
import {
IconBluesky,
IconCodeberg,
@ -29,7 +29,7 @@ import {
IconTwitch,
IconWeasyl,
IconYouTube,
} from "../components/icons/brands";
} from "@components/icons/brands";
const gpgKey = await readFile("./public/gpg.pub", { encoding: "utf-8" });
const sshKey = await readFile("./public/ssh.pub", { encoding: "utf-8" });
@ -62,7 +62,9 @@ const sshKey = await readFile("./public/ssh.pub", { encoding: "utf-8" });
alt="A pixelated metal briefcase over a background with a green gradient."
class="u-logo mx-auto my-4 h-screen max-h-48 rounded-full transition-transform hover:scale-110 motion-reduce:transition-none motion-reduce:hover:scale-100 sm:max-h-72"
/>
<p class="p-note mt-6 sm:px-5 md:px-6">I'm a safe vore enthusiast, a furry, and occasional writer.</p>
<p class="p-note mt-6 sm:px-5 md:px-6">
I'm a safe vore enthusiast, a furry, a programmer, and occasional writer.
</p>
<ul id="links" class="grid grid-cols-3 gap-x-4 px-4 pt-8 sm:grid-cols-4 sm:px-20 md:px-32" aria-label="Links">
{
Astro.site ? (

View file

@ -1,5 +1,5 @@
import type { APIRoute } from "astro";
import { AI_BOTS } from "../data/ai_bots";
import { AI_BOTS } from "@data/ai_bots";
export const GET: APIRoute = async () => {
const robots = [AI_BOTS.map((bot) => `User-agent: ${bot}`), "Disallow: /", "", "User-agent: *", "Disallow: .htaccess"]

View file

@ -1,8 +1,8 @@
---
import { Image } from "astro:assets";
import BaseLayout from "../layouts/BaseLayout.astro";
import { IconArrowUpRightFromSquare } from "../components/icons";
import { ImageSamAllStickers, ImageSamRefsheet } from "../assets/images";
import BaseLayout from "@layouts/BaseLayout.astro";
import { IconArrowUpRightFromSquare } from "@components/icons";
import { ImageSamAllStickers, ImageSamRefsheet } from "@assets/images";
---
<BaseLayout pageTitle="Sam Brendan">

View file

@ -1,8 +1,8 @@
---
import BaseLayout from "../layouts/BaseLayout.astro";
import { IconSquareRSS } from "../components/icons";
import BaseLayout from "@layouts/BaseLayout.astro";
import { IconSquareRSS } from "@components/icons";
import { TOS_COMMISSION_STATUS, TOS_UPDATED_AT } from "../data/tos";
import { TOS_COMMISSION_STATUS, TOS_UPDATED_AT } from "@data/tos";
---
<BaseLayout pageTitle="Terms of Service">

View file

@ -1,6 +1,6 @@
---
import BaseLayout from "../layouts/BaseLayout.astro";
import { IconArrowUpRightFromSquare, IconBriefcase } from "../components/icons";
import BaseLayout from "@layouts/BaseLayout.astro";
import { IconArrowUpRightFromSquare, IconBriefcase } from "@components/icons";
import {
IconEkasPortal,
IconFurAffinity,
@ -8,10 +8,10 @@ import {
IconSoFurry,
IconSubscribeStar,
IconWeasyl,
} from "../components/icons/brands";
} from "@components/icons/brands";
import { TOS_COMMISSION_STATUS } from "../data/tos";
import { SUBSCRIBESTAR_ENABLED } from "../data/subscribestar";
import { TOS_COMMISSION_STATUS } from "@data/tos";
import { SUBSCRIBESTAR_ENABLED } from "@data/subscribestar";
---
<BaseLayout pageTitle="My work">
@ -57,8 +57,8 @@ import { SUBSCRIBESTAR_ENABLED } from "../data/subscribestar";
and I'm very proud of it! Check it out if you have an hour to spare and the subject matters interest you.
</p>
<p class="mb-4 mt-4 text-justify indent-6 sm:mt-6 sm:px-5 sm:indent-12">
You can find my gallery and its mirrors below, which include all of my content. Aside from the first link, these
also include some of the art that I got from others (commissions, gifts, etc.).
You can find my galleries through any of the links below. Aside from the first link, these also include some of
the art that I got from others (commissions, gifts, etc.).
</p>
<ul class="h-card flex flex-col items-center">
<li class="mb-2 w-max sm:mb-1">