--- import { getCollection } from 'astro:content'; import BaseLayout from '../layouts/BaseLayout.astro'; import { WORLDS, CATEGORY_COLORS, HERO_TAGLINE, SITE_FOUNDED } from '../consts'; 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 oldestYear = posts.length ? posts[posts.length - 1].data.pubDate.getFullYear() : SITE_FOUNDED; const fmtDate = (d: Date) => d.toLocaleDateString('ru-RU', { year: 'numeric', month: 'long', day: 'numeric' }); ---
Ролевой проект · с {SITE_FOUNDED} года

Иные
Отражения

{HERO_TAGLINE}

{totalWorlds} мира {totalPosts} публикаций {new Date().getFullYear() - SITE_FOUNDED} лет онлайн

Хроника проекта

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