Grav - Media URL


Advertisements

Description

url() gives back raw url path to media.

Example

{{ page.media['my-new-image.jpg'].url }}

Output

The above code fetches you the following output −

Grav Media
grav_media.htm
Advertisements