Promotional Content
Arte y Web Creaciones uses three promotional content collections to showcase different web service offerings. These collections share a common schema and support multiple content formats.Collections Overview
promoSingle: Single-page website promotionspromoPro: Professional website promotionspromoTienda: Online store/e-commerce promotions
Shared Schema
All promotional collections use the same schema defined insrc/content.config.ts:14-26:
Sidebar Details Schema
ThedetallesSideBar field uses a nested schema defined in src/content.config.ts:5-11:
Collection Definitions
Defined insrc/content.config.ts:48-62:
Example: promoSingle
Real example fromsrc/content/promoSingle/promoSingle.md:
Directory Structure
Supported Formats
All promotional collections support:- Markdown (
.md) - MDX (
.mdx) - JSON (
.json)
JSON Format Example
Fromsrc/data/promociones.json, showing a tienda online promotion:
Creating New Promotions
- Choose the appropriate collection directory
- Create a new file with supported extension (
.md,.mdx, or.json) - Include all required schema fields
- Follow the pricing format: string with symbols (e.g., “190.00” or “500”)
Markdown Format
Querying Promotional Collections
Icon Classes
Theicono field in detallesSideBar uses icon class strings. Common patterns:
- Bootstrap Icons:
"bi bi-heart","bi bi-lightning" - Simple names:
"heart","ray","menu2","smile"