Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/llms-txt-hub / apps/web/app/guides/page.tsx |
| Date | Not specified in source |
| Repository | Janady13/llms-txt-hub |
| Revision | e0f4bf978d4df168369c7601d9c5f5ea89e84377 |
| Branch | main |
| Path or archive member | apps/web/app/guides/page.tsx |
| Original SHA-256 | 01ce87194ea1ef22b54908af524b398dc1b4b9df154cb1c43cdff8a4d8ad193a |
| Git blob SHA | a8e95aafb34351485f748a022ca0e3ed5a7a96dc |
| Reading-copy SHA-256 | 01ce87194ea1ef22b54908af524b398dc1b4b9df154cb1c43cdff8a4d8ad193a |
Recovered source transcript
Download complete source text ↓73 lines · 2.7 KB
import { Breadcrumb } from '@thedaviddias/design-system/breadcrumb'
import { getBaseUrl } from '@thedaviddias/utils/get-base-url'
import type { Metadata } from 'next'
import { EmptyState } from '@/components/empty-state'
import { JsonLd } from '@/components/json-ld'
import { GuideCard } from '@/components/sections/guide-card'
import { type GuideMetadata, getGuides } from '@/lib/content-loader'
import { generateGuideSchema } from '@/lib/schema'
import { generateBaseMetadata } from '@/lib/seo/seo-config'
export const metadata: Metadata = generateBaseMetadata({
title: 'llms.txt Guides - How to Create & Implement llms.txt Files',
description:
'Step-by-step guides on how to create llms.txt files, implement the llms.txt standard, and optimize your documentation for AI. Tutorials for developers and content creators.',
path: '/guides',
keywords: [
'how to create llms.txt',
'llms.txt tutorial',
'llms.txt implementation guide',
'create llms.txt file',
'llms.txt guides',
'AI documentation tutorial',
'llms.txt best practices'
]
})
export default async function GuidesPage() {
const guides = await getGuides()
return (
<div className="container mx-auto py-8">
<JsonLd
data={{
'@context': 'https://schema.org',
'@graph': guides.map((guide: GuideMetadata) => generateGuideSchema(guide))
}}
/>
<div className="space-y-12">
<Breadcrumb items={[{ name: 'Guides', href: '/guides' }]} baseUrl={getBaseUrl()} />
{/* Header */}
<div className="space-y-2">
<h1 className="text-4xl font-bold tracking-tight flex items-center gap-3">
<span className="size-2 bg-primary rounded-full" />
llms.txt Guides
</h1>
<p className="text-lg text-muted-foreground">
Learn how to implement and use llms.txt effectively with our comprehensive guides.
</p>
</div>
{guides?.length ? (
<section className="space-y-6">
<h2 className="text-sm font-bold uppercase tracking-wider text-muted-foreground">
All Guides ({guides.length})
</h2>
<div className="grid gap-4 sm:gap-6 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4">
{guides.map((guide: GuideMetadata, index: number) => (
<GuideCard key={guide.slug} guide={guide} index={index} />
))}
</div>
</section>
) : (
<EmptyState
title="No guides yet"
description="We're working on comprehensive guides to help you implement llms.txt. Check back soon!"
/>
)}
</div>
</div>
)
}