feat: some stuff
Some checks failed
Deploy to GitHub Pages / build (push) Failing after 14m41s
Deploy to GitHub Pages / deploy (push) Has been skipped

This commit is contained in:
2024-04-03 21:09:50 +02:00
parent d025f7e01b
commit 1e04a7be6f
46 changed files with 241 additions and 48 deletions

View File

@@ -1,5 +1,8 @@
---
import markdownToText from "@helpers/markdownToText";
import { useTranslatedPath } from "@i18n/utils";
const tp = useTranslatedPath(Astro.url);
interface Props {
post: {
@@ -19,7 +22,7 @@ const { post } = Astro.props;
---
<a
href={`/${post.collection}/${post.slug.split("/").pop()}`}
href={tp(`/${post.collection}/${post.slug.split("/")[0]}`)}
class="rounded-diag-md border border-neutral p-4 overflow-hidden"
>
<h2