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

View File

@ -34,7 +34,7 @@
><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path
d="M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"
/><path
d="M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7"
d="M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.q7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7"
/></svg
>
<svg