--- import Layout from '../layouts/base.astro' import Header from '../components/header.astro' import TagCloudSection from '../components/TagCloudSection.astro' import { getChannelInfo } from '../lib/telegram' import { getEnv } from '../lib/env' const channel = await getChannelInfo(Astro) channel.seo = { title: 'Links', } const links = (getEnv(import.meta.env, Astro, 'LINKS') || '') .split(';') .filter(Boolean) .map((link) => { link = link.split(',') return { title: link[0], href: link[1], } }) if (!links.length) { return Astro.redirect('/') } const items = links.map((link) => ({ href: link.href, label: link.title, title: link.title, external: true, })) ---