mirror of
https://github.com/lektor/lektor-website.git
synced 2025-02-22 07:00:38 +01:00
Merge pull request #300 from nicoleiocana/patch-2
Set my_image correctly
This commit is contained in:
commit
b3a3aaac71
2
content/docs/templates/imageops/contents.lr
vendored
2
content/docs/templates/imageops/contents.lr
vendored
@ -35,7 +35,7 @@ To access images from a different content folder, you would use:
|
||||
To retrieve only a specific image or attachment with a certain name you would use
|
||||
|
||||
```html+jinja
|
||||
{% set my_image site.get('/myfolder').attachments.get('imagenameexample.jpg') %}
|
||||
{% set my_image = site.get('/myfolder').attachments.get('imagenameexample.jpg') %}
|
||||
<div class="image"><img src="{{ my_image|url }}"></div>
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user