diff options
| author | Dennis Fink | 2026-08-08 19:32:47 +0200 |
|---|---|---|
| committer | Dennis Fink | 2026-08-08 19:32:47 +0200 |
| commit | 1af817249d115ff7013d3ab1a30ea145e30924c7 (patch) | |
| tree | abaccd3582453e702754da0f111bf0a75002f14a /flowblocks/gallery.ini | |
| parent | 0d0b6cf226c5a06c265de540ca0c2997e7ed2b06 (diff) | |
| download | dennisfink.me-1af817249d115ff7013d3ab1a30ea145e30924c7.tar.gz dennisfink.me-1af817249d115ff7013d3ab1a30ea145e30924c7.zip | |
Add aspect-ratio-aware image galleries
This adds a project-local gallery plugin that builds deterministic rectangular
image layouts from attachment aspect ratios, with both in-process and disk-backed
layout caching.
It also adds gallery flow blocks, templates, and CSS so posts can include
responsive galleries with lazy-loaded images, configurable gaps, target ratios,
and the existing breakout/centering utilities.
Diffstat (limited to 'flowblocks/gallery.ini')
| -rw-r--r-- | flowblocks/gallery.ini | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/flowblocks/gallery.ini b/flowblocks/gallery.ini new file mode 100644 index 0000000..9235ab3 --- /dev/null +++ b/flowblocks/gallery.ini @@ -0,0 +1,25 @@ +[block] +name = Gallery +button_label = Gallery + +[fields.images] +label = Images +type = flow +flow_blocks = gallery-image + +[fields.breakout] +label = Breakout +type = select +choices = none, xxs, xs, sm, md, lg, xl, xxl, full +choice_labels = None, XXS, XS, SM, MD, LG, XL, XXL, Full +default = none + +[fields.target_ratio] +label = Preferred gallery ratio +type = float +default = 1.5 + +[fields.gap] +label = Gap +type = float +default = 0.5 |
