Set my_image correctly

This commit is contained in:
nicoleiocana 2020-05-01 17:03:06 -07:00 committed by GitHub
parent 938adf27a0
commit 2c5a8737aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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>
```