Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
silviolleite authored Nov 29, 2018
1 parent 5739946 commit 457e9a6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,32 +97,26 @@ Inject the required meta tags in your `base.html` (or wherever your HTML <hea
```html
{% load flags %}

<head>
<ul>
{% languages %}
</ul>
</head>
```
By default it will show the rectangular icons, but you can change it to `square`:
```html
{% load flags %}

<head>
<ul>
{% languages 'square' %}
</ul>
</head>
```

Optionally you can set your custom class for HTML tags:
```html
{% load flags %}

<head>
<ul>
{% languages 'square' li_class='your-li-class' a_class='your-a-class' %}
</ul>
</head>
```

The `languages` template tags accept `**kwargs` to configure the HTML elements.
Expand Down Expand Up @@ -194,4 +188,4 @@ npm run build

Licensing
=====
All files in this repository are distributed under the MIT license.
All files in this repository are distributed under the MIT license.

0 comments on commit 457e9a6

Please sign in to comment.