Use path aliasing and improve accesibility

This commit is contained in:
Bad Manners 2024-09-14 17:51:22 -03:00
parent b464c5e795
commit dadbd32e1b
No known key found for this signature in database
GPG key ID: 8C88292CCB075609
40 changed files with 138 additions and 115 deletions

View file

@ -3,10 +3,10 @@ import type { APIRoute } from "astro";
import { getCollection, getEntries, type CollectionEntry, type CollectionKey } from "astro:content";
import { markdown } from "@astropub/md";
import sanitizeHtml from "sanitize-html";
import { t, type Lang } from "../i18n";
import { markdownToPlaintext } from "../utils/markdown_to_plaintext";
import { getUsernameForLang } from "../utils/get_username_for_lang";
import { qualifyLocalURLsInMarkdown } from "../utils/qualify_local_urls_in_markdown";
import { t, type Lang } from "@i18n";
import { markdownToPlaintext } from "@utils/markdown_to_plaintext";
import { getUsernameForLang } from "@utils/get_username_for_lang";
import { qualifyLocalURLsInMarkdown } from "@utils/qualify_local_urls_in_markdown";
type FeedItem = RSSFeedItem &
Required<Pick<RSSFeedItem, "title" | "pubDate" | "link" | "description" | "categories" | "content">>;