--- import Layout from '../layouts/Layout.astro'; import { getCollection } from 'astro:content'; import NewsLetter from "../components/NewsLetter.astro"; import {siteConfig} from "../config"; import ArticleList from "../components/ArticleList.astro"; import { getLangFromUrl, useTranslations, useTranslatedPath } from '../i18n/utils'; const lang = getLangFromUrl(Astro.url); const t = useTranslations(lang); const translatePath = useTranslatedPath(lang); const posts = await getCollection('posts'); posts.sort((a, b) => new Date(b.data.date).getTime() - new Date(a.data.date).getTime()); ---

~/blog

{t('posts.description')}

ls -la posts/

cat subscribe.txt
{t('subscribe.rss')}

{siteConfig.newsletter.enabled && }