Warning, /epic.github.io/_includes/navigation/findlink.md is written in an unsupported language. File is not indexed.
0001 {%- if include.title -%}
0002 {%- assign tag=include.title -%}
0003 {%- else -%}
0004 {%- if include.tag -%}
0005 {%- assign tag=include.tag -%}
0006 {%- else -%}
0007 {%- assign tag=include.name -%}
0008 {%- endif -%}
0009 {%- endif -%}
0010
0011 {%- assign found_items=site.data.links | where: "name", include.name -%}
0012 {%- if include.category %}
0013 {%- assign found_items=found_items | where: "category", include.category | compact -%}
0014 {%- endif -%}
0015 {%- assign found_link= found_items | map: "url" | first -%}
0016 {%- if found_link -%}
0017 {%- if include.category -%}
0018 * [{{ tag }}]({{ found_link }}){:target="_blank"}
0019 {%- else -%}
0020 {% if include.html %}
0021 <a href="{{ found_link }}" target="_blank">{{ tag }} <img src="{{ site.external_icon | relative_url }}" height="16" width="16"></a>
0022 {%- else -%}
0023 [{{ tag }}]({{ found_link }}){:target="_blank"}
0024 {%- endif -%}
0025 {%- endif -%}
0026 {%- endif -%}