post
Markdown Post with Gallery Guide
Markdown Post with Gallery Guide
Overview
This guide explains how to create a Markdown-formatted blog post with an image gallery 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
Gallery Configuration
gallery: # Image gallery configuration
- img: "/path/to/thumbnail1.webp" # Thumbnail image
full_src: "/path/to/full-image1.webp" # Full-size image
alt: "Image Description" # Alt text
caption: "Image Caption" # Optional caption
- img: "/path/to/thumbnail2.webp"
full_src: "/path/to/full-image2.webp"
alt: "Another Image"
caption: "Another Caption"
Advanced Metadata
badge_color: "bg-meander" # Optional badge color
trending: true/false # Mark as trending
meta_title: "SEO Title" # SEO-optimized title
meta_description: | # SEO description
Detailed description of the post
permalink: "/posts/post-slug" # Custom permalink
Gallery Rendering
{% raw %}{% include posts/gallery-layout.html images=page.gallery %}{% endraw %}
Image Gallery Best Practices
Image Selection
- Choose high-quality, visually cohesive images
- Maintain consistent image style
- Use meaningful captions
- Provide descriptive alt text
- Optimize image sizes
Gallery Layout Techniques
- Grid layout
- Masonry layout
- Carousel/Slider
- Lightbox integration
- Responsive design
Customization Options
- Control gallery layout
- Implement image filtering
- Add hover effects
- Create interactive galleries
- Support multiple gallery types
Performance Optimization
- Use WebP image format
- Implement lazy loading
- Compress images
- Use responsive image techniques
- Minimize initial page load time
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
Troubleshooting
- Verify image file paths
- Check image loading performance
- Test gallery responsiveness
- Validate front matter configuration
- Ensure cross-browser compatibility
Related Documentation
Example Workflow
- Select compelling images
- Prepare image assets
- Configure gallery metadata
- Write descriptive content
- Implement gallery layout
- Review and refine
- Publish
Advanced Gallery Features
- Support multiple gallery types
- Create filterable galleries
- Implement image zoom
- Add image metadata
- Support lightbox interactions