File Structure
Words are organized in two collections for bilingual support:src/content/words-es/- Spanish version of wordssrc/content/words-en/- English version of words
Step-by-Step Guide
Create the word file
Create a new
.md file in both src/content/words-es/ and src/content/words-en/.File naming conventions:- Use lowercase letters only
- Replace spaces with hyphens:
pura-vida.md - Remove accents:
puchica.md(notpúchica.md) - No special characters allowed
Add frontmatter fields
Add the YAML frontmatter at the top of the file with all required fields.Minimal example:Complete example with optional fields:
Add optional Markdown content
After the frontmatter, you can add additional context, etymology, cultural notes, or usage examples.
Validate and save
Save both files. Astro will automatically validate the frontmatter against the Zod schema.If validation fails, you’ll see a descriptive error message during build. See Validation Schema for details.
Required Fields
All word files must include these fields:The word or phrase in its original form. Can include accents and special characters.Examples:
"Patojo""Púchica""¡Aguas!"
Complete definition of the word. Be clear and concise.Example:
Array of real usage examples. Include at least 2-3 examples showing different contexts.Example:
Grammatical category of the word. Must be one of the valid options.Spanish categories:
"sustantivo"(noun)"verbo"(verb)"adjetivo"(adjective)"adverbio"(adverb)"expresión"(expression)"interjección"(interjection)"modismo"(idiom)
"noun""verb""adjective""adverb""expression""interjection""idiom"
Optional Fields
Geographic region where the word is used. Defaults to “Guatemala” if omitted.Example:
List of similar words or synonyms.Example:
List of related words that users might find interesting.Example:
Marks the word as featured to display on the homepage.Example:
Only mark the 6 most representative or popular words as featured to avoid cluttering the homepage.
Bilingual Setup
Each word must exist in both Spanish and English collections:Spanish Version (src/content/words-es/patojo.md)
English Version (src/content/words-en/patojo.md)
Common Mistakes
Invalid Category
Missing Examples
Filename Issues
Automatic Features
Once you add a word file, the system automatically:- Generates SEO-friendly URLs (slugs) from the filename
- Updates the alphabetical index
- Includes the word in search results
- May display it in the homepage ticker
- Validates the schema on build
Content Guidelines
Writing Quality Examples
- Use natural, conversational language
- Show the word in different contexts
- Include cultural context when relevant
- Keep examples concise and clear
Style Conventions
- Write clearly and concisely
- Use real, natural examples
- Include cultural context when relevant
- Maintain a respectful and educational tone
- Avoid overly formal or academic language
Next Steps
- Learn about Content Collections to query words
- Review the Validation Schema for technical details
- Check existing words in
src/content/words-es/for examples