We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd63de3 commit 0a1c0baCopy full SHA for 0a1c0ba
src/components/ToolList.astro
@@ -47,16 +47,15 @@ const tools: Tool[] = [
47
date: "2024 06 19",
48
url: "/tools/random-number-generator",
49
},
50
-]
51
- .sort((a, b) => new Date(b.date).valueOf() - new Date(a.date).valueOf())
52
- .slice(0, toolCount);
+].sort((a, b) => new Date(b.date).valueOf() - new Date(a.date).valueOf());
+const toolsLimited: Tool[] = tools.slice(0, toolCount);
53
54
const images = import.meta.glob("@/images/*");
55
---
56
57
<ul>
58
{
59
- tools.map((tool) => (
+ toolsLimited.map((tool) => (
60
<li class="tool">
61
<a href={tool.url} class="contrast">
62
<div class="hero-image">
0 commit comments