forked from rc/aircox
work on layout.css
This commit is contained in:
13
aircox_cms/templates/aircox_cms/snippets/link.html
Executable file
13
aircox_cms/templates/aircox_cms/snippets/link.html
Executable file
@ -0,0 +1,13 @@
|
||||
{% load wagtailimages_tags %}
|
||||
|
||||
{% with link=self.as_dict %}
|
||||
<a href="{{ link.url }}" {% if self.info %}title="{{ self.info }}"{% endif %}>
|
||||
{% if link.icon %}
|
||||
{% image link.icon fill-32x32 class="icon link_icon" height='' width='' %}
|
||||
{% elif link.icon_path %}
|
||||
<img src="{{ link.icon_path }}" class="icon link_icon"/>
|
||||
{% endif %}
|
||||
{{ link.text }}
|
||||
</a>
|
||||
{% endwith %}
|
||||
|
Reference in New Issue
Block a user