Merge pull request #300 from nicoleiocana/patch-2

Set my_image correctly
This commit is contained in:
Andreas Runfalk 2020-05-02 02:36:56 +02:00 committed by GitHub
commit b3a3aaac71
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>
```