From 65a55ca6ef243582c123afa675534e35a06e9207 Mon Sep 17 00:00:00 2001 From: striker Date: Thu, 21 May 2026 01:33:24 +0300 Subject: [PATCH] =?UTF-8?q?refactor:=20=C2=AB=D0=9C=D0=B8=D1=80=D1=8B?= =?UTF-8?q?=C2=BB=20=D0=B2=D1=8B=D0=BD=D0=B5=D1=81=D0=B5=D0=BD=D1=8B=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BE=D1=82=D0=B4=D0=B5=D0=BB=D1=8C=D0=BD=D1=83?= =?UTF-8?q?=D1=8E=20/miry/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit С главной убрана секция миров — лента из 50 постов длинная и до миров мало кто долистает. Меню «Миры» теперь ведёт на полноценную /miry/. --- src/consts.ts | 2 +- src/pages/index.astro | 25 +------------------------ src/pages/miry.astro | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 25 deletions(-) create mode 100644 src/pages/miry.astro diff --git a/src/consts.ts b/src/consts.ts index bf5d8e7..45b9219 100644 --- a/src/consts.ts +++ b/src/consts.ts @@ -107,6 +107,6 @@ export const WORLDS: World[] = [ export const MAIN_NAV = [ { label: 'Новости', href: '/' }, { label: 'О нас', href: '/o-nas/' }, - { label: 'Миры', href: '/#worlds' }, + { label: 'Миры', href: '/miry/' }, { label: 'Друзья', href: '/nashi-druzya/' }, ]; diff --git a/src/pages/index.astro b/src/pages/index.astro index bfd2481..05c61e1 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -7,7 +7,7 @@ const posts = (await getCollection('posts')) .sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()); const totalPosts = posts.length; -const totalWorlds = WORLDS.length; +const totalWorlds = WORLDS.length; // используется в hero-meta const oldestYear = posts.length ? posts[posts.length - 1].data.pubDate.getFullYear() : SITE_FOUNDED; const fmtDate = (d: Date) => @@ -57,27 +57,4 @@ const fmtDate = (d: Date) => -
-
-

Миры и проекты

- -
- -
diff --git a/src/pages/miry.astro b/src/pages/miry.astro new file mode 100644 index 0000000..c1d33c8 --- /dev/null +++ b/src/pages/miry.astro @@ -0,0 +1,36 @@ +--- +import BaseLayout from '../layouts/BaseLayout.astro'; +import { WORLDS } from '../consts'; +--- + +
+ Игровые проекты +

Миры

+

+ Восемь вселенных проекта — каждая со своим тоном, правилами и многолетней историей игр. +

+
+ +
+ +
+