feat(blocks): enhance heading, video, and add gallery block
- Add H5 heading level option to heading block - Improve video block fallback image help text - Add new gallery block with image slider functionality Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
3f3fb53f02
commit
93f7b45c97
3 changed files with 39 additions and 2 deletions
|
|
@ -34,8 +34,7 @@ fields:
|
|||
back: black
|
||||
uploads:
|
||||
template: blocks/image
|
||||
when:
|
||||
location: kirby
|
||||
help: Affichée si la vidéo ne charge pas. **Obligatoire pour la version print.**
|
||||
caption:
|
||||
label: field.blocks.video.caption
|
||||
type: writer
|
||||
|
|
|
|||
35
site/blueprints/blocks/gallery.yml
Normal file
35
site/blueprints/blocks/gallery.yml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
name: Galerie (slider)
|
||||
icon: dashboard
|
||||
preview: gallery
|
||||
fields:
|
||||
images:
|
||||
label: field.blocks.gallery.images.label
|
||||
type: files
|
||||
query: model.images
|
||||
multiple: true
|
||||
layout: cards
|
||||
size: small
|
||||
empty: field.blocks.gallery.images.empty
|
||||
uploads:
|
||||
template: blocks/image
|
||||
image:
|
||||
ratio: 1/1
|
||||
# ratio:
|
||||
# label: field.blocks.image.ratio
|
||||
# type: select
|
||||
# placeholder: Auto
|
||||
# width: 1/2
|
||||
# options:
|
||||
# 1/1: "1:1"
|
||||
# 16/9: "16:9"
|
||||
# 10/8: "10:8"
|
||||
# 21/9: "21:9"
|
||||
# 7/5: "7:5"
|
||||
# 4/3: "4:3"
|
||||
# 5/3: "5:3"
|
||||
# 3/2: "3:2"
|
||||
# 3/1: "3:1"
|
||||
# crop:
|
||||
# label: field.blocks.image.crop
|
||||
# type: toggle
|
||||
# width: 1/2
|
||||
|
|
@ -16,6 +16,9 @@ fields:
|
|||
- value: h4
|
||||
icon: h4
|
||||
text: H4
|
||||
- value: h5
|
||||
icon: h5
|
||||
text: H5
|
||||
text:
|
||||
label: field.blocks.heading.text
|
||||
type: writer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue