From 58b74bb8016e715f677f5ecb562de9b28563e22d Mon Sep 17 00:00:00 2001 From: Max Richter Date: Wed, 3 Apr 2024 18:07:54 +0200 Subject: [PATCH] feat: some shit --- .github/workflows/default.yaml | 6 ++ astro.config.mjs | 1 - src/components/HeroCard.astro | 4 +- src/components/ImageGallery.svelte | 2 +- src/components/LanguagePicker.astro | 2 +- src/components/Max.astro | 2 +- src/components/Nav.astro | 4 +- src/components/SmallCard.astro | 6 +- src/components/arrows/ArrowA.astro | 2 +- src/components/arrows/ArrowB.astro | 2 +- .../projects/plantarium/_components/leaves.ts | 1 + src/helpers/exif.ts | 3 + src/helpers/normalizeWheel.ts | 1 + src/i18n/utils.ts | 15 ++--- src/layouts/Post.astro | 2 +- src/pages/index.astro | 4 +- src/pages/projects/index.astro | 2 +- src/pages/tag/[tag].astro | 58 +++++++++---------- src/pages/tag/index.astro | 8 +-- 19 files changed, 62 insertions(+), 63 deletions(-) diff --git a/.github/workflows/default.yaml b/.github/workflows/default.yaml index f37284a..5205f8a 100644 --- a/.github/workflows/default.yaml +++ b/.github/workflows/default.yaml @@ -37,11 +37,17 @@ jobs: key: ${{ runner.os }}-lfs-${{ env.LFS_CACHE_ID }} restore-keys: | + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + - name: 📦 Install PNPM uses: pnpm/action-setup@v3 id: pnpm-install with: version: 8 + node_version: 20 run_install: false - name: Get pnpm store directory diff --git a/astro.config.mjs b/astro.config.mjs index 8a66160..205252a 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -2,7 +2,6 @@ import { defineConfig } from 'astro/config'; import { i18n, filterSitemapByDefaultLocale } from "astro-i18n-aut/integration"; import sitemap from "@astrojs/sitemap"; import mdx from '@astrojs/mdx'; -import tailwind from '@astrojs/tailwind'; import glsl from 'vite-plugin-glsl'; import svelte from "@astrojs/svelte"; diff --git a/src/components/HeroCard.astro b/src/components/HeroCard.astro index b97b040..7fd7a99 100644 --- a/src/components/HeroCard.astro +++ b/src/components/HeroCard.astro @@ -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}`; diff --git a/src/components/ImageGallery.svelte b/src/components/ImageGallery.svelte index 244205b..fc02e40 100644 --- a/src/components/ImageGallery.svelte +++ b/src/components/ImageGallery.svelte @@ -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; diff --git a/src/components/LanguagePicker.astro b/src/components/LanguagePicker.astro index e9c40dc..ba0ef3e 100644 --- a/src/components/LanguagePicker.astro +++ b/src/components/LanguagePicker.astro @@ -16,7 +16,7 @@ function translatePath(lang: string) { return `/${[lang, ...split].join("/")}`; } -const t = useTranslations(Astro); +const t = useTranslations(Astro.url); ---