68 lines
1.2 KiB
Markdown
Raw Normal View History

# Content Directory
This directory contains your site's content files. The basic template provides a simple content structure that you can customize.
## Structure
```
content/
├── blog/ # Blog posts
├── pages/ # Static pages
├── menu.toml # Site navigation
└── config.toml # Content configuration
```
## Usage
### Blog Posts
Add markdown files to `blog/` directory:
```markdown
# My First Post
Date: 2024-01-01
Author: {{author}}
Tags: rustelo, web-development
Your content here...
```
### Pages
Add static pages to `pages/` directory:
```markdown
# About
This is the about page for {{project_name}}.
```
### Navigation
Edit `menu.toml` to customize site navigation:
```toml
[[main]]
name = "Home"
url = "/"
[[main]]
name = "Blog"
url = "/blog"
[[main]]
name = "About"
url = "/about"
```
## Content Processing
Content is processed by the Rustelo content system, which supports:
- Markdown rendering
- Front matter parsing
- Automatic routing
- SEO optimization
- Search indexing (if enabled)
## Customization
You can extend the content structure by:
1. Adding new directories for different content types
2. Customizing front matter fields
3. Creating content templates
4. Adding content processing hooks