From fd7c9c063ba70d5be141addfb57a1cb4019cabe3 Mon Sep 17 00:00:00 2001 From: lukas Date: Thu, 21 Dec 2017 22:45:27 -0500 Subject: [PATCH] /content/docs/templates/imageops fix .query to .get --- content/docs/templates/imageops/contents.lr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/templates/imageops/contents.lr b/content/docs/templates/imageops/contents.lr index 005f61e7..642d9ec7 100644 --- a/content/docs/templates/imageops/contents.lr +++ b/content/docs/templates/imageops/contents.lr @@ -27,7 +27,7 @@ the query. For instance this iterates over all attached images of a page: To access images from a different content folder, you would use: ```html+jinja -{% for image in site.query('/myfolder').attachments.images %} +{% for image in site.get('/myfolder').attachments.images %}
{% endfor %} ``` @@ -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.query('/myfolder').attachments.get('imagenameexample.jpg') %} +{% set my_image site.get('/myfolder').attachments.get('imagenameexample.jpg') %}
```