diff options
Diffstat (limited to 'src/pages/blogs.astro')
| -rw-r--r-- | src/pages/blogs.astro | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pages/blogs.astro b/src/pages/blogs.astro index 84cca84..e0da2f9 100644 --- a/src/pages/blogs.astro +++ b/src/pages/blogs.astro @@ -12,8 +12,6 @@ const blogs = (await getCollection("blogs")) date: blog.data.date, href: "/blogs/" + blog.slug, })); -const repeatArray = (arr, times) => Array(times).fill(arr).flat(); -const repeated = repeatArray(blogs, 10); --- <Terminal path="blogs/"> @@ -25,7 +23,7 @@ const repeated = repeatArray(blogs, 10); </TerminalBorder> <div class="max-h-[80svh] sm:max-h-[24vw] overflow-y-auto"> { - repeated.map((blog) => ( + blogs.map((blog) => ( <> <BlogItem title={blog.title} |
