Skip to content

Commit 40ce71a

Browse files
committed
Resolve #145 -- Add documentation for grid arguments
1 parent 5aabd50 commit 40ce71a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ class Profile(models.Model):
4040
{% picture profile.picture img_alt="Spiderman" img_loading="lazy" picture_class="my-picture" m=6 l=4 %}
4141
```
4242

43+
The keyword arguments `m=6 l=4` define the columns the image should take up in
44+
a grid at a given breakpoint. So in this example, the image will take up
45+
6 columns on medium screens and 4 columns on large screens. You can define your
46+
grid and breakpoints as you want, refer to the [grid columns](#grid-columns) and
47+
[breakpoints](#breakpoints) sections.
48+
4349
The template above will render into:
4450
```html
4551
<picture class="my-picture">

0 commit comments

Comments
 (0)