Skip to content

Commit fe1ca69

Browse files
authored
update: ecosystem page
update: ecosystem page
2 parents bec689a + f4f93e7 commit fe1ca69

9 files changed

Lines changed: 49 additions & 9 deletions

File tree

src/components/ecosystem-pages/project-card.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const {
2323
>
2424
<div class="overflow-hidden rounded-[4px]">
2525
<Image
26-
class="w-full transform object-cover"
26+
class="aspect-[12/7] w-full transform object-contain"
2727
src={image}
2828
alt={`banner image for the post`}
2929
width={1200}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
projectTitle: Akash Report # <--- This is the title of the project
3+
projectImage: "./project-banner.png" # <--- This is the banner image of the project
4+
pubDate: "2025-08-09" # <--- This is the date of the project in the format of "YYYY-MM-DD"
5+
6+
tags: # <--- This is the tags of the project
7+
- Akash News, Guides, Videos, Swap
8+
9+
category: deployed_on_akash, other # <--- This is the category of the project which can be "deployed_on_akash", "tools"
10+
11+
description: Your one-stop hub for Akash Network and Web3 news, guides, videos and token swaps. Explore the unstoppable cloud and stay ahead of the decentralized curve.
12+
13+
showcase: true # <--- This is the showcase of the project in the ecosystem page/showcase
14+
15+
twitterLink: "https://x.com/AkashReport" # <--- This is the twitter link of the project
16+
17+
featured: true # <--- This is the featured of the project in the ecosystem page/showcase
18+
---
6.69 KB
Loading
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
projectTitle: Arcturus # <--- This is the title of the project
3+
projectImage: "./project-banner.png" # <--- This is the banner image of the project
4+
pubDate: "2025-08-09" # <--- This is the date of the project in the format of "YYYY-MM-DD"
5+
6+
tags: # <--- This is the tags of the project
7+
- Gaming, NFT
8+
9+
category: Gaming, NFT, deployed_on_akash # <--- This is the category of the project which can be "deployed_on_akash", "tools"
10+
11+
description: A space colony in a distant star system!
12+
13+
showcase: true # <--- This is the showcase of the project in the ecosystem page/showcase
14+
15+
websiteLink: "https://arcturus.arcturian.tech/" # <--- This is the website link of the project
16+
githubLink: "https://github.com/Arcturian-Tech" # <--- This is the github link of the project
17+
twitterLink: "https://x.com/arcturus__star" # <--- This is the twitter link of the project
18+
19+
featured: true # <--- This is the featured of the project in the ecosystem page/showcase
20+
---
159 KB
Loading

src/pages/api/search/akash-tools.json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async function getAkashTools_PageContent() {
1515
projectImage: content.data.projectImage,
1616
projectTitle: content.data.projectTitle,
1717
projectDescription: content.data.description,
18-
projectLink: content.data.ctaButton.link,
18+
projectLink: content?.data.ctaButton?.link,
1919
pubDate: content.data.pubDate,
2020
githubLink: content.data.githubLink,
2121
twitterLink: content.data.twitterLink,

src/pages/api/search/deployed-on-akash.json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async function getDeployedOnAkashContent() {
1515
projectImage: content.data.projectImage,
1616
projectTitle: content.data.projectTitle,
1717
projectDescription: content.data.description,
18-
projectLink: content.data.ctaButton.link,
18+
projectLink: content?.data.ctaButton?.link,
1919
pubDate: content.data.pubDate,
2020
githubLink: content.data.githubLink,
2121
twitterLink: content.data.twitterLink,

src/pages/api/search/showcase.json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async function getDeployedOnAkashContent() {
1515
projectImage: content.data.projectImage,
1616
projectTitle: content.data.projectTitle,
1717
projectDescription: content.data.description,
18-
projectLink: content.data.ctaButton.link,
18+
projectLink: content?.data.ctaButton?.link,
1919
pubDate: content.data.pubDate,
2020
githubLink: content.data.githubLink,
2121
twitterLink: content.data.twitterLink,

src/utils/schema/ecosystem.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ const baseSchema = defineCollection({
88
description: z.string(),
99
pubDate: z.coerce.date(),
1010
tags: z.array(z.string()),
11-
ctaButton: z.object({
12-
label: z.string(),
13-
link: z.string(),
14-
enable: z.boolean(),
15-
}),
11+
ctaButton: z
12+
.object({
13+
label: z.string(),
14+
link: z.string(),
15+
enable: z.boolean(),
16+
})
17+
.optional(),
1618
category: z.union([z.string(), z.array(z.string())]),
1719
showcase: z.boolean().optional(),
1820
githubLink: z.string().optional(),

0 commit comments

Comments
 (0)