mirror of
https://github.com/captn3m0/plugo.git
synced 2024-09-21 09:58:31 +00:00
16 lines
500 B
HTML
16 lines
500 B
HTML
{% assign icon_found=false%}
|
|
{% assign location_name = include.data.name | downcase %}
|
|
{% assign location_type = include.data.business | downcase %}
|
|
{% for icon in site.data.business %}
|
|
{% assign match=icon[0] | downcase%}
|
|
{% if location_name contains match %}
|
|
{{icon[1]}}-15
|
|
{%assign icon_found=true%}
|
|
{%break%}
|
|
{% elsif location_type contains match %}
|
|
{{icon[1]}}-15
|
|
{%assign icon_found=true%}
|
|
{%break%}
|
|
{%endif%}
|
|
{%endfor%}
|
|
{%unless icon_found%}marker-15{%endunless%} |