docs: use a propertylist to document shortcode attributes (#732)
This commit is contained in:
parent
76ef8f147c
commit
83469c437f
24 changed files with 256 additions and 94 deletions
19
exampleSite/data/properties/shortcode-images.yaml
Normal file
19
exampleSite/data/properties/shortcode-images.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
properties:
|
||||
- name: name
|
||||
type: string
|
||||
description: Mame of the image resource defined in page front matter.
|
||||
required: true
|
||||
- name: alt
|
||||
type: string
|
||||
description: Description text for the image.
|
||||
required: false
|
||||
- name: size
|
||||
type: string
|
||||
description: Thumbnail size. Supported values are `origin|profile|tiny|small|medium|large`.
|
||||
required: false
|
||||
- name: lazy
|
||||
type: bool
|
||||
description: Enable/disable lazy loading for the image.
|
||||
required: false
|
||||
defaultValue: true
|
Loading…
Add table
Add a link
Reference in a new issue