feat: some shit
Some checks failed
Deploy to GitHub Pages / build (push) Failing after 7m15s
Deploy to GitHub Pages / deploy (push) Has been skipped

This commit is contained in:
2024-04-03 18:07:54 +02:00
parent 5e931f15d3
commit 58b74bb801
19 changed files with 62 additions and 63 deletions

View File

@ -24,8 +24,8 @@ const {
slug,
} = Astro.props.post;
const translatePath = useTranslatedPath(Astro);
const t = useTranslations(Astro);
const translatePath = useTranslatedPath(Astro.url);
const t = useTranslations(Astro.url);
const imagePath = `../content/${collection}/${slug.split("/")[0]}/${headerImg}`;

View File

@ -6,7 +6,7 @@
let progress = [];
let currentIndex = -1;
const maxZoom = 5;
import { swipe } from "svelte-gestures";
// import { swipe } from "svelte-gestures";
const mod = (a: number, b: number) => ((a % b) + b) % b;

View File

@ -16,7 +16,7 @@ function translatePath(lang: string) {
return `/${[lang, ...split].join("/")}`;
}
const t = useTranslations(Astro);
const t = useTranslations(Astro.url);
---
<ul>

View File

@ -6,7 +6,7 @@ import { Card } from "./card";
import { useTranslations } from "@i18n/utils";
const t = useTranslations(Astro);
const t = useTranslations(Astro.url);
---
<Card

View File

@ -7,8 +7,8 @@ function isActive(path: string) {
return Astro.url.pathname === path ? "active" : "";
}
const t = useTranslations(Astro);
const translatePath = useTranslatedPath(Astro);
const t = useTranslations(Astro.url);
const translatePath = useTranslatedPath(Astro.url);
const paths = [
{

View File

@ -5,9 +5,9 @@ interface Props {
post: {
data: {
title: string;
description: string;
icon: string;
tags: string[];
description?: string;
icon?: string;
tags?: string[];
};
collection: string;
body: string;

View File

@ -1,6 +1,6 @@
---
import { useTranslations } from "@i18n/utils";
const t = useTranslations(Astro);
const t = useTranslations(Astro.url);
---
<div class="arrow flex items-center gap-2">

View File

@ -1,6 +1,6 @@
---
import { useTranslations } from "@i18n/utils";
const t = useTranslations(Astro);
const t = useTranslations(Astro.url);
---
<div class="arrow flex items-center gap-2">