kopia lustrzana https://github.com/wagtail/wagtail
Update frontenddevelopers.rst
rodzic
f73c5416ba
commit
5faa0652a2
|
@ -192,7 +192,7 @@ More control over the ``img`` tag
|
|||
|
||||
Wagtail provides two shorcuts to give greater control over the ``img`` element:
|
||||
|
||||
**Adding attributes to the {% image %} tag**
|
||||
**1. Adding attributes to the {% image %} tag**
|
||||
|
||||
.. versionadded:: 0.4
|
||||
|
||||
|
@ -205,7 +205,7 @@ Extra attributes can be specified with the syntax ``attribute="value"``:
|
|||
No validation is performed on attributes added in this way so it's possible to add `src`, `width`, `height` and `alt` of your own that might conflict with those generated by the tag itself.
|
||||
|
||||
|
||||
**Generating the image "as foo" to access individual properties**
|
||||
**2. Generating the image "as foo" to access individual properties**
|
||||
|
||||
Wagtail can assign the image data to another variable using Django's ``as`` syntax:
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue