diff --git a/templates/betterthumbs.docs.html.twig b/templates/betterthumbs.docs.html.twig index c40dd25..5b91802 100644 --- a/templates/betterthumbs.docs.html.twig +++ b/templates/betterthumbs.docs.html.twig @@ -299,6 +299,9 @@ php vendor/bolt/bolt/app/nut betterthumbs:cacheClear filename.jpg
To render a single image you'll need to use the bthumb tag: {{ bthumb( record.image, 'namedConfig') }}
+ This will give you: /img/your-image.jpg?your-modifications&s=accf4b6f5584ecfc3c2cbf3f0fab98c8
+
The config for a single image is different from a regular BetterThumbs config block. You don't need any of the image tag attributes ( id, classes, data-attributes, widthDesnity descriptors etc). You only need to supply a config name and the modifications you wish to apply to the image.
@@ -311,6 +314,7 @@ php vendor/bolt/bolt/app/nut betterthumbs:cacheClear filename.jpgCreate a named config block similar to the one in the above paragraph. Then in your twig templates use the bthumb tag with the name of the config block you created.
+Example using a single image as inline background image.