зеркало из https://github.com/mozilla/bedrock.git
Update references to "media()" in docs.
This commit is contained in:
Родитель
66541a947d
Коммит
63da90f246
|
@ -38,11 +38,11 @@ Embedding images
|
||||||
|
|
||||||
Images should be included on pages using helper functions.
|
Images should be included on pages using helper functions.
|
||||||
|
|
||||||
media()
|
static()
|
||||||
^^^^^^^
|
^^^^^^^^
|
||||||
For a simple image, the `media()` function is used to generate the image URL. For example::
|
For a simple image, the `static()` function is used to generate the image URL. For example::
|
||||||
|
|
||||||
<img src="{{ media('img/firefox/new/firefox-logo.png') }}" alt="Firefox" />
|
<img src="{{ static('img/firefox/new/firefox-logo.png') }}" alt="Firefox" />
|
||||||
|
|
||||||
will output an image::
|
will output an image::
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче