fix: make base in astro config work

This commit is contained in:
saicaca committed 2024-04-29 17:09:52 +08:00
1 parent 9a3119cab4
commit 410902a767
11 files changed
+37 -26

No files matched your search

+2 -1
View File
@@ -2,11 +2,12 @@
import ImageWrapper from "../misc/ImageWrapper.astro";
import {Icon} from "astro-icon/components";
import {profileConfig} from "../../config";
import {url} from "../../utils/url-utils";
const config = profileConfig;
---
<div class="card-base">
<a aria-label="Go to About Page" href="/about"
<a aria-label="Go to About Page" href={url('/about/')}
class="group block relative mx-auto mt-4 lg:mx-3 lg:mt-3 mb-3
max-w-[240px] lg:max-w-none overflow-hidden rounded-xl active:scale-95">
<div class="absolute transition pointer-events-none group-hover:bg-black/30 group-active:bg-black/50