feat: some shit
This commit is contained in:
@ -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}`;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -16,7 +16,7 @@ function translatePath(lang: string) {
|
||||
return `/${[lang, ...split].join("/")}`;
|
||||
}
|
||||
|
||||
const t = useTranslations(Astro);
|
||||
const t = useTranslations(Astro.url);
|
||||
---
|
||||
|
||||
<ul>
|
||||
|
@ -6,7 +6,7 @@ import { Card } from "./card";
|
||||
|
||||
import { useTranslations } from "@i18n/utils";
|
||||
|
||||
const t = useTranslations(Astro);
|
||||
const t = useTranslations(Astro.url);
|
||||
---
|
||||
|
||||
<Card
|
||||
|
@ -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 = [
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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">
|
||||
|
@ -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">
|
||||
|
Reference in New Issue
Block a user