Skip to content

Commit

Permalink
Add documentation on adding html attributes on img_tag liquid filter (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Skrypt authored and sebastienros committed Jan 8, 2019
1 parent 842324f commit d693cc9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/OrchardCore.Modules/OrchardCore.Media/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ Renders an `<img src />` HTML tag.

#### Options

##### `alt` (Default)

The alternate text attribute value
You can add as many html attributes as you want with the img_tag.
`{{ 'animals/kittens.jpg' | asset_url | img_tag: alt: 'kittens', class: 'kittens black', data_order: some_var }}`

## Image resizing filters

Expand Down Expand Up @@ -142,4 +141,4 @@ Keep these things in mind when working with the deployment step editor:
https://sixlabors.com/projects/imagesharp/

Copyright 2012 James South
Licensed under the Apache License, Version 2.0
Licensed under the Apache License, Version 2.0

0 comments on commit d693cc9

Please sign in to comment.