Image Rendering Test

Image Rendering Test

This post demonstrates Hugo Narrow’s justified gallery layout with lightbox functionality.

Here are some test images arranged in a justified gallery layout:

Mountain Landscape
Beautiful mountain landscape with dramatic lighting

![Batman Wallpaper](/images/gallery/Blue Wallpaper Batman.jpg “Dark Knight themed wallpaper”)

AI Generated Art 1
AI generated artwork with abstract design

![Downloaded Image](/images/gallery/download (1).jpg “Downloaded image for testing”)

AI Generated Art 2
Another AI generated artwork

Personal Photo 1
Personal photo from gallery

![AI Generated Art 3](/images/gallery/Gemini_Generated_Image_o53gh5o53gh5o53g (1).png “Third AI generated artwork”)

Wallpaper 2
Another beautiful wallpaper

Personal Photo 2
Second personal photo

![AI Generated Art 4](/images/gallery/Gemini_Generated_Image_o53gh5o53gh5o53g (2).png “Fourth AI generated artwork”)

Personal Photo 3
Third personal photo

Features Demonstrated

  • Justified Layout: Images automatically arrange in horizontal rows with equal height
  • Thumbnail View: Images appear as small thumbnails in the justified grid
  • Lightbox: Click any thumbnail to view full-size image in overlay
  • Navigation: Use arrow keys or click to navigate between images
  • Responsive: Layout adapts to different screen sizes
  • Lazy Loading: Images load as needed for better performance

How It Works

The Hugo Narrow theme automatically detects consecutive images and applies the justified gallery layout when:

  1. justified_gallery.enabled: true is set in the post front matter
  2. lightbox.enabled: true is set for lightbox functionality
  3. Images are placed consecutively in the markdown

The theme uses the fjGallery library for justified layout and GLightbox for the lightbox overlay functionality.

Start searching

Enter keywords to search articles

↑↓
ESC
⌘K Shortcut