From fe37a70d2670a7954d26b69bc6187cbec3868f3e Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Thu, 15 Aug 2024 16:46:01 +0200 Subject: [PATCH] smoll Fixes --- src/pages/regeln/[mode].astro | 2 +- src/pages/regeln/index.astro | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/pages/regeln/[mode].astro b/src/pages/regeln/[mode].astro index cc44584..1298dd4 100644 --- a/src/pages/regeln/[mode].astro +++ b/src/pages/regeln/[mode].astro @@ -53,7 +53,7 @@ const {Content} = await page.render();

{t(`${page.data.translationKey}.title`)}

{mode && mode.data.ranked && ( - + {t("rules.ranking")} )} diff --git a/src/pages/regeln/index.astro b/src/pages/regeln/index.astro index 905431c..b436b76 100644 --- a/src/pages/regeln/index.astro +++ b/src/pages/regeln/index.astro @@ -31,14 +31,15 @@ const modes = await getCollection("modes", entry => entry.data.main); alt={t("rules." + value.data.translationKey + ".title")} class="h-full aspect-square max-w-fit">
-

{t(value.data.translationKey + ".title")}

-
{t("rules." + value.data.translationKey + ".description")}
+ +

{t(value.data.translationKey + ".title")}

+
{t("rules." + value.data.translationKey + ".description")}
+
- {t("rules.rules")} {t("rules.publics")} {value.data.ranked ? {t("rules.ranking")} + class="text-yellow-300 hover:underline w-fit">{t("rules.ranking")} : null}