{{ post.title }}
{% if post.metadata.description %}{{ post.metadata.description }}
{% endif %} {% if post.metadata.tags %} {% endif %}--- version: "1.0" date: "2025-01-15" author: "DWS Foldsite Team" title: "Template Recipes" description: "Ready-to-use examples for common Foldsite patterns" summary: "Complete, working examples for building blogs, photo galleries, documentation sites, and more with Foldsite." quick_tips: - "All recipes are complete and ready to use - just copy and customize" - "Recipes demonstrate real-world patterns used in production Foldsites" - "Mix and match components from different recipes" --- # Template Recipes Ready-to-use templates and patterns for common Foldsite use cases. Copy these examples and customize them for your needs. ## Recipe Collection ### Blog Site Complete blog setup with recent posts, tag filtering, and related content. ### Photo Gallery Beautiful image galleries with EXIF data, breadcrumbs, and responsive layout. ### Documentation Site Hierarchical documentation with navigation, breadcrumbs, and sibling pages. ### Portfolio Site Project showcase with custom layouts per project. --- ## Recipe 1: Personal Blog A complete blog with post listings, tags, and related posts. ### Directory Structure ``` my-blog/ ├── content/ │ ├── index.md │ ├── about.md │ └── posts/ │ ├── 2024-01-15-first-post.md │ ├── 2024-02-20-python-tips.md │ └── 2024-03-10-web-development.md ├── templates/ │ ├── base.html │ ├── index.html │ ├── __file.md.html │ └── posts/ │ ├── __file.md.html │ └── __folder.md.html └── styles/ ├── base.css └── posts/ └── __file.md.css ``` ### Post Frontmatter Format ```markdown --- title: "My First Blog Post" date: "2024-01-15" author: "Your Name" tags: ["python", "tutorial", "beginners"] description: "A brief introduction to Python for beginners" --- # Your content here... ``` ### Template: `base.html` ```html
Thoughts on coding, life, and everything in between.
{{ post.metadata.description }}
{% endif %} {% if post.metadata.tags %} {% endif %}{{ get_recent_posts(limit=1000, folder='posts')|length }} posts and counting
{{ post.metadata.description }}
{% endif %} {% if post.metadata.tags %} {% endif %}{{ photos|list|length }} photos
{# Show sibling galleries #} {% set sibling_folders = get_sibling_content_folders(currentPath) %} {% if sibling_folders %} {% endif %}{{ metadata.description if metadata else "Designer & Developer" }}