Initial commit
This commit is contained in:
52
templates/collections/blog-posts.yml
Normal file
52
templates/collections/blog-posts.yml
Normal file
@@ -0,0 +1,52 @@
|
||||
# Blog Post Collection Template
|
||||
# Copy this collection definition to your admin/config.yml
|
||||
|
||||
- name: posts
|
||||
label: Blog Posts
|
||||
folder: content/posts # Adjust for your framework (e.g., _posts for Jekyll)
|
||||
create: true
|
||||
slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
|
||||
format: yaml # or md, toml, json
|
||||
fields:
|
||||
- label: Title
|
||||
name: title
|
||||
widget: string
|
||||
hint: Post title
|
||||
|
||||
- label: Date
|
||||
name: date
|
||||
widget: datetime
|
||||
date_format: 'YYYY-MM-DD'
|
||||
time_format: 'HH:mm:ss'
|
||||
format: 'YYYY-MM-DDTHH:mm:ssZ'
|
||||
|
||||
- label: Draft
|
||||
name: draft
|
||||
widget: boolean
|
||||
default: true
|
||||
hint: Set to false to publish
|
||||
|
||||
- label: Featured Image
|
||||
name: image
|
||||
widget: image
|
||||
required: false
|
||||
|
||||
- label: Excerpt / Description
|
||||
name: description
|
||||
widget: text
|
||||
required: false
|
||||
hint: Short description for SEO
|
||||
|
||||
- label: Tags
|
||||
name: tags
|
||||
widget: list
|
||||
required: false
|
||||
|
||||
- label: Categories
|
||||
name: categories
|
||||
widget: list
|
||||
required: false
|
||||
|
||||
- label: Body
|
||||
name: body
|
||||
widget: markdown
|
||||
45
templates/collections/docs-pages.yml
Normal file
45
templates/collections/docs-pages.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
# Documentation Page Collection Template
|
||||
# Copy this collection definition to your admin/config.yml
|
||||
|
||||
- name: docs
|
||||
label: Documentation
|
||||
folder: content/docs # Adjust for your framework
|
||||
create: true
|
||||
slug: '{{slug}}'
|
||||
format: yaml
|
||||
fields:
|
||||
- label: Title
|
||||
name: title
|
||||
widget: string
|
||||
|
||||
- label: Description
|
||||
name: description
|
||||
widget: text
|
||||
required: false
|
||||
hint: Page description for SEO
|
||||
|
||||
- label: Order / Weight
|
||||
name: weight
|
||||
widget: number
|
||||
value_type: int
|
||||
required: false
|
||||
hint: Sort order (lower numbers appear first)
|
||||
|
||||
- label: Category
|
||||
name: category
|
||||
widget: select
|
||||
options:
|
||||
- Getting Started
|
||||
- Guides
|
||||
- API Reference
|
||||
- Advanced
|
||||
required: false
|
||||
|
||||
- label: Draft
|
||||
name: draft
|
||||
widget: boolean
|
||||
default: false
|
||||
|
||||
- label: Body
|
||||
name: body
|
||||
widget: markdown
|
||||
78
templates/collections/landing-pages.yml
Normal file
78
templates/collections/landing-pages.yml
Normal file
@@ -0,0 +1,78 @@
|
||||
# Landing Page Collection Template (Structured Content)
|
||||
# Copy this collection definition to your admin/config.yml
|
||||
|
||||
- name: pages
|
||||
label: Landing Pages
|
||||
folder: content/pages
|
||||
create: true
|
||||
slug: '{{slug}}'
|
||||
format: json # JSON for structured data
|
||||
fields:
|
||||
- label: Title
|
||||
name: title
|
||||
widget: string
|
||||
|
||||
- label: SEO
|
||||
name: seo
|
||||
widget: object
|
||||
fields:
|
||||
- label: Meta Title
|
||||
name: metaTitle
|
||||
widget: string
|
||||
required: false
|
||||
|
||||
- label: Meta Description
|
||||
name: metaDescription
|
||||
widget: text
|
||||
required: false
|
||||
|
||||
- label: OG Image
|
||||
name: ogImage
|
||||
widget: image
|
||||
required: false
|
||||
|
||||
- label: Hero Section
|
||||
name: hero
|
||||
widget: object
|
||||
fields:
|
||||
- label: Headline
|
||||
name: headline
|
||||
widget: string
|
||||
|
||||
- label: Subheadline
|
||||
name: subheadline
|
||||
widget: text
|
||||
|
||||
- label: Hero Image
|
||||
name: image
|
||||
widget: image
|
||||
required: false
|
||||
|
||||
- label: CTA Button
|
||||
name: cta
|
||||
widget: object
|
||||
fields:
|
||||
- label: Text
|
||||
name: text
|
||||
widget: string
|
||||
- label: URL
|
||||
name: url
|
||||
widget: string
|
||||
|
||||
- label: Features
|
||||
name: features
|
||||
widget: list
|
||||
required: false
|
||||
fields:
|
||||
- label: Title
|
||||
name: title
|
||||
widget: string
|
||||
|
||||
- label: Description
|
||||
name: description
|
||||
widget: text
|
||||
|
||||
- label: Icon
|
||||
name: icon
|
||||
widget: image
|
||||
required: false
|
||||
Reference in New Issue
Block a user