Templates to help developers render images.
Use images/image
to render images.
1{{ partial "images/image" (dict
2 "Page" .
3 "Filename" "/path/to/image.png"
4 "Alt" "Example Image"
5) }}
Filename
Name | Type | Required | Default | Since |
---|---|---|---|---|
Filename | string | ✓ | - | - |
The filename or URL of image.
Alt
Name | Type | Required | Default | Since |
---|---|---|---|---|
Alt | string | - | - | - |
Alternative text.
Caption
Name | Type | Required | Default | Since |
---|---|---|---|---|
Caption | string | - | - | - |
Figure caption.
Page
Name | Type | Required | Default | Since |
---|---|---|---|---|
Page | string | - | - | - |
The page variable for finding image resources.
ClassName
Name | Type | Required | Default | Since |
---|---|---|---|---|
ClassName | string | - | img-fluid | - |
The class name of <img>
.
Original
Name | Type | Required | Default | Since |
---|---|---|---|---|
Original | boolean | - | false | - |
Whether to describe the original image info via data-*
attributes.
LazyLoading
Name | Type | Required | Default | Since |
---|---|---|---|---|
LazyLoading | boolean | - | true | - |
Whether to enable lazy loading.