Image Layouts
Mar 28, 2026
About 1 min read (205 Words, 12 Photos)
Switch to Raw Markdown Content
By default, Markdown displays images one per line.
The Linen theme introduces an image container (``) supporting multiple layouts. Click Switch to Raw Markdown Content on this page to view the exact Markdown syntax.
Landscape Layout image-grid landscape


:::
Portrait Layout
Mixed Layouts
Six mixed aspect-ratio layouts are supported:
3:2 & 2:3 : r73 (landscape left, portrait right), r37 (portrait left, landscape right)
4:3 & 3:4 : r64 (landscape left, portrait right), r46 (portrait left, landscape right)
16:9 & 9:16 : rLeftWide (wide left, portrait right), rRightWide (portrait left, wide right)
Use scroll or slider (both are equivalent, with scroll-snap alignment) to display multiple photos in a horizontally scrollable strip:
Tabbed Image Switcher (switcher) Use switcher to compare multiple images in place with an animated tab bar:
Specify tab labels explicitly with Label | ;
Or use the image’s alt text directly as the tab label (alt takes priority if both are present);
Falls back to 1, 2, 3, … when omitted;
Navigating slides inside the PhotoSwipe lightbox automatically keeps the active tab in sync.
Option A Option B Option C Option A Option B Option C
Tip: A plain :::image-grid without a layout class automatically adapts to 2–4 columns and also supports <iframe> embeds (such as Live Photos).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 --- title: Image Layouts excerpt: Simple layouts make for easier reading. date: 2026-03-28 23:55 cover: /img/ivan-shimko-PhciG8fpRKw-unsplash.jpg coverInfo: author: Ivan Shimko url: https://unsplash.com/photos/three-beach-illustrations-PhciG8fpRKw series: User-Guide tags: [Quick-Start, Configuration] appendRawMarkdown: true tocType: flat translations: ['zh-CN'] --- By default, Markdown displays images one per line.  The Linen theme introduces an image container (`:::image-grid` ) supporting multiple layouts. Click **Switch to Raw Markdown Content** on this page to view the exact Markdown syntax. ## Landscape Layout :::image-grid landscape   ::: ## Portrait Layout :::image-grid portrait    ::: ## Mixed Layouts Six mixed aspect-ratio layouts are supported: - **3:2 & 2:3** : `r73` (landscape left, portrait right), `r37` (portrait left, landscape right)- **4:3 & 3:4** : `r64` (landscape left, portrait right), `r46` (portrait left, landscape right)- **16:9 & 9:16** : `rLeftWide` (wide left, portrait right), `rRightWide` (portrait left, wide right):::image-grid r73   ::: ## Horizontal Scroll Carousel (`scroll` / `slider`) Use `scroll` or `slider` (both are equivalent, with `scroll-snap` alignment) to display multiple photos in a horizontally scrollable strip: :::image-grid scroll    ::: ## Tabbed Image Switcher (`switcher`) Use `switcher` to compare multiple images in place with an animated tab bar: - Specify tab labels explicitly with `Label | ` ;- Or use the image's `alt` text directly as the tab label (`alt` takes priority if both are present);- Falls back to `1` , `2` , `3` , ... when omitted;- Navigating slides inside the PhotoSwipe lightbox automatically keeps the active tab in sync.:::image-grid switcher    ::: > Tip: A plain `:::image-grid` without a layout class automatically adapts to 2–4 columns and also supports `<iframe > ` embeds (such as Live Photos).