Skip to content

Commit 06a8988

Browse files
committed
disable enable research paper
1 parent f7cce1c commit 06a8988

8 files changed

Lines changed: 37 additions & 45 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ astro boilerplate
7373

7474
## [1.4.1] - 2026-06-28
7575

76-
- Added research page
76+
- Added Research page
7777

7878
### [Unreleased]
7979

src/components/ResearchSection.astro

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,12 @@ const slicedPosts = posts.slice(0, 3);
99

1010
<section class="py-20">
1111
<div class="mx-auto max-w-7xl px-6 lg:px-10">
12-
1312
<!-- Top Heading -->
1413
<div class="mb-14 flex flex-col gap-5 lg:flex-row lg:items-end lg:justify-between">
1514
<div>
16-
<p class="mb-3 text-sm font-semibold uppercase tracking-[0.25em] text-blue-600">
17-
Research Library
18-
</p>
15+
<p class="mb-3 text-sm font-semibold uppercase tracking-[0.25em] text-blue-600">Research Library</p>
1916

20-
<h2 class="text-4xl font-bold tracking-tight md:text-5xl">
21-
Latest Research
22-
& White Papers
23-
</h2>
17+
<h2 class="text-4xl font-bold tracking-tight md:text-5xl">Latest Research & White Papers</h2>
2418
</div>
2519

2620
<a
@@ -34,20 +28,21 @@ const slicedPosts = posts.slice(0, 3);
3428
<!-- Research Grid -->
3529
<div class="grid gap-8 md:grid-cols-2 lg:grid-cols-3">
3630
{
37-
slicedPosts.map((post) => (
38-
<ResearchCard
39-
url={`/research/${post.id}`}
40-
title={post.data.title}
41-
description={post.data.description}
42-
image={post.data.image}
43-
author={post.data.author}
44-
date={post.data.date.toLocaleDateString()}
45-
tags={post.data.tags}
46-
featured={false}
47-
/>
48-
))
31+
slicedPosts
32+
.filter((post) => post.data.isActive)
33+
.map((post) => (
34+
<ResearchCard
35+
url={`/research/${post.id}`}
36+
title={post.data.title}
37+
description={post.data.description}
38+
image={post.data.image}
39+
author={post.data.author}
40+
date={post.data.date.toLocaleDateString()}
41+
tags={post.data.tags}
42+
featured={false}
43+
/>
44+
))
4945
}
5046
</div>
51-
5247
</div>
53-
</section>
48+
</section>

src/content.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ const research = defineCollection({
4545
tags: z.array(z.string()).default([]),
4646
category: z.string(),
4747
featured: z.boolean().default(false),
48-
image: z.string().optional()
48+
image: z.string().optional(),
49+
isActive: z.boolean().default(true)
4950
})
5051
});
5152

src/content/research/future-trends-report.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ tags:
88
- ai
99
category: "AI & Technology"
1010
featured: true
11+
isActive: true
1112
---
1213

1314
import StatisticBlock from "@/components/research/StatisticBlock.astro";
@@ -20,7 +21,8 @@ import D3Graph from "@/components//D3Graph.astro";
2021

2122
## Introduction
2223

23-
Artificial Intelligence is rapidly transforming industries across the globe. Businesses are increasingly investing in automation, data-driven decision making, and intelligent software to improve productivity and reduce operational costs. From manufacturing and healthcare to retail and logistics, AI is becoming a key competitive advantage.
24+
Artificial Intelligence is rapidly transforming industries across the globe. Businesses are increasingly investing in automation, data-driven decision making, and intelligent software to improve productivity and reduce operational costs.
25+
From manufacturing and healthcare to retail and logistics, AI is becoming a key competitive advantage.
2426

2527
The manufacturing sector, particularly textiles and supply chain management, is experiencing significant digital transformation. Organizations are adopting machine learning, computer vision, and predictive analytics to streamline operations and improve product quality.
2628

src/content/research/hidden-cost-of-manual-processes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ tags:
88
- operations
99
category: "Case Studies"
1010
featured: false
11+
isActive: false
1112
---
1213

1314
## Introduction

src/content/research/why-we-built-this-product.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ tags:
88
- product
99
category: "Product Vision"
1010
featured: false
11+
isActive: false
1112
---
1213

1314
## Introduction

src/pages/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import AboutSection from "@/components/AboutSection.astro";
33
import AppsSimplifySection from "@/components/AppsSimplifySection.astro";
44
import BlogsSection from "@/components/BlogsSection.astro";
55
import ContactSection from "@/components/ContactSection.astro";
6-
import BaseLayout from "@/layouts/BaseLayout";
76
import ResearchSection from "@/components/ResearchSection.astro";
7+
import BaseLayout from "@/layouts/BaseLayout";
88
---
99

1010
<BaseLayout meta={{ title: "Recursive Zero" }}>
1111
<AboutSection />
1212
<!--<TestimonialsSection />-->
13-
<ResearchSection />
13+
<ResearchSection />
1414
<BlogsSection />
1515
<!--<NewsLetterSection />-->
1616
<AppsSimplifySection />

src/pages/research/index.astro

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,44 +9,39 @@ const selectedCategory = Astro.url.searchParams.get("category");
99
1010
const filteredPosts = selectedCategory
1111
? posts.filter((post) => post.data.category === selectedCategory)
12-
: posts;
12+
: posts.filter((post) => post.data.isActive);
1313
14-
const featuredPost = !selectedCategory
15-
? posts.find((post) => post.data.featured)
16-
: null;
14+
const featuredPost = !selectedCategory ? posts.find((post) => post.data.featured) : null;
1715
1816
const gridPosts = selectedCategory
1917
? filteredPosts
20-
: filteredPosts.filter((post) => !post.data.featured);
18+
: filteredPosts.filter((post) => !post.data.isActive || !post.data.featured);
2119
---
2220

2321
<BaseLayout meta={{ title: "Research & White Papers" }}>
2422
<main class="bg-background text-foreground">
2523
<section class="mx-auto max-w-7xl px-6 py-20 lg:px-10">
26-
2724
<!-- Hero -->
2825
<div class="text-center">
2926
<p class="mb-4 text-sm font-semibold uppercase tracking-[0.25em] text-brandBlue dark:text-cyan-400">
3027
Research Library
3128
</p>
3229

33-
<h1 class="text-4xl font-bold tracking-tight text-foreground sm:text-5xl md:text-6xl">
30+
<h1 class="text-foreground text-4xl font-bold tracking-tight sm:text-5xl md:text-6xl">
3431
Research & White Papers
3532
</h1>
3633

37-
<p class="mx-auto mt-6 max-w-2xl text-lg leading-8 text-foreground/70">
38-
Explore industry research, market analysis, case studies,
39-
AI trends, sustainability insights and product vision papers.
34+
<p class="text-foreground/70 mx-auto mt-6 max-w-2xl text-lg leading-8">
35+
Explore industry research, market analysis, case studies, AI trends, sustainability insights and product
36+
vision papers.
4037
</p>
4138
</div>
4239

4340
<!-- Featured -->
4441
{
4542
featuredPost && (
4643
<section class="mt-16">
47-
<h2 class="mb-8 text-3xl font-bold text-foreground">
48-
Featured Research
49-
</h2>
44+
<h2 class="text-foreground mb-8 text-3xl font-bold">Featured Research</h2>
5045

5146
<ResearchCard
5247
url={`/research/${featuredPost.id}`}
@@ -82,13 +77,10 @@ const gridPosts = selectedCategory
8277

8378
{
8479
gridPosts.length === 0 && (
85-
<p class="mt-10 text-center text-foreground/60">
86-
No research articles found in this category.
87-
</p>
80+
<p class="text-foreground/60 mt-10 text-center">No research articles found in this category.</p>
8881
)
8982
}
9083
</section>
91-
9284
</section>
9385
</main>
94-
</BaseLayout>
86+
</BaseLayout>

0 commit comments

Comments
 (0)