This repository was archived by the owner on May 19, 2026. It is now read-only.
Adding Images to PAELLADOC Blog Posts #25
jlcases
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
How to Add Images to PAELLADOC Blog Posts
Hello PAELLADOC community! We've updated our blog contribution guidelines with detailed instructions on how to properly add images to your posts.
Image Optimization System
We've implemented a complete Ruby/Jekyll-based image optimization system that automatically:
<picture>elements with srcset and sizesHow to Add Images to Your Posts
1. Image Preparation
_posts_images_original/folder at the project root.jpg,.jpeg,.png,.gif,.webp2. Automatic Processing
Your images will be processed automatically in two ways:
git addand commit, the pre-commit hook will detect and process themrake optimize_post_imagesmanually to process all images in the folderThe responsive versions will be stored in
assets/images/posts_responsive/organized by image name and size.3. Referencing in Markdown
In your post, use the Jekyll responsive image tag:
{% responsive_image path: _posts_images_original/image-name.jpg alt: "Accessible description of the image" %}Additional parameters available:
class: CSS classes for the picture elementimage_class: CSS classes for the img elementwidth: Specific width (optional)height: Specific height (optional)title: Title to display on hoversizes: Custom sizes attribute (responsive by default)4. Featured Images
For featured images, add in your post's frontmatter:
Benefits of This Architecture
Accessibility Recommendations
alt: ""(don't omit the attribute)Troubleshooting
_posts_images_original/rake optimize_post_imagesrake setup_imagesAdvanced Configuration
The configuration for image processing is in
_config.ymlunder theresponsive_imagekey. If you need to adjust parameters like quality or sizes, consult with the maintenance team.All reactions