--- import type { CollectionEntry } from 'astro:content'; import EntryThumbnail from './EntryThumbnail.astro'; import TagList from './TagList.astro'; import { ARTICLE_THUMBNAIL, articlePath, formatDate, formatDateShort } from '../lib/site'; interface Props { posts: CollectionEntry<'posts'>[]; showYear?: boolean; tagLimit?: number; timeline?: boolean; // Opt-in: eagerly load thumbnails that are reliably above the fold. Lists // below substantial content (related, about, 404) should leave this at zero. eagerFirstThumbnail?: boolean; eagerThumbnailCount?: number; } const { posts, showYear = true, tagLimit = 3, timeline = false, eagerFirstThumbnail = false, eagerThumbnailCount = eagerFirstThumbnail ? 1 : 0, } = Astro.props; ---
    { posts.map((post, index) => { const href = articlePath(post); const eager = index < eagerThumbnailCount; return (
  1. ); }) }