post
Markdown Post with Carousel Guide
Markdown Post with Carousel Guide
Overview
This guide explains how to create a Markdown-formatted blog post with a carousel using the Snowlake Jekyll theme.
Front Matter Configuration
Layout and Basic Information
layout: posts/post # Required layout for post
title: "Post Title" # Main title of the blog post
date: YYYY-MM-DD HH:MM:SS +TIMEZONE # Publication date and time
Categorization and Metadata
categories: [category1, category2] # Post categories
tags: [tag1, tag2] # Post tags
author: "Author Name" # Post author
post_image: "/path/to/featured-image.webp" # Featured post image
Carousel Configuration
post_format: "carousel" # Indicates carousel post type
gallery: # Carousel image configuration
- img: "/path/to/image1.webp" # Image paths
- img: "/path/to/image2.webp"
- img: "/path/to/image3.webp"
Advanced Metadata
badge_color: "bg-purple" # Optional badge color
meta_title: "SEO Title" # SEO-optimized title
meta_description: | # SEO description
Detailed description of the post
permalink: "/posts/post-slug" # Custom permalink
Carousel Rendering
{% raw %}
# Gallery Layout
{% include posts/gallery-layout.html images=page.gallery %}
# Carousel Layout
{% include posts/carousel-layout.html images=page.gallery id="unique-carousel-id" %}
{% endraw %}
Carousel Best Practices
Image Selection
- Choose high-quality, visually cohesive images
- Maintain consistent image style
- Optimize image sizes
- Use meaningful captions
- Provide descriptive alt text
Carousel Design
- Responsive layout
- Touch-friendly interactions
- Smooth transitions
- Navigation controls
- Autoplay options
Customization Options
- Control carousel behavior
- Implement custom transitions
- Add navigation controls
- Create multi-carousel layouts
- Support touch and mouse interactions
Performance Optimization
- Use WebP image format
- Implement lazy loading
- Compress images
- Minimize initial page load time
- Use efficient carousel libraries
SEO Considerations
- Add descriptive alt text
- Use meaningful file names
- Implement schema.org markup
- Optimize image metadata
- Support image search indexing
Accessibility Guidelines
- Provide comprehensive alt text
- Support keyboard navigation
- Ensure color contrast
- Add ARIA labels
- Support screen readers
- Implement pause/play controls
Troubleshooting
- Verify image file paths
- Check carousel loading performance
- Test responsive behavior
- Validate front matter configuration
- Ensure cross-browser compatibility
Related Documentation
Example Workflow
- Select compelling images
- Prepare image assets
- Configure carousel metadata
- Write descriptive content
- Implement carousel layout
- Review and refine
- Publish
Advanced Carousel Features
- Support multiple carousel types
- Create filterable carousels
- Implement image zoom
- Add image metadata
- Support lightbox interactions
- Create responsive galleries