Consolidate published content layouts and fix comments

This commit is contained in:
Bad Manners 2024-08-10 13:07:53 -03:00
parent d529b043c6
commit c38275e2f2
19 changed files with 637 additions and 721 deletions

View file

@ -3,8 +3,7 @@ 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 } from "../i18n";
import type { Lang } from "../content/config";
import { t, type Lang } from "../i18n";
import { markdownToPlaintext } from "../utils/markdown_to_plaintext";
import { getUsernameForLang } from "../utils/get_username_for_lang";