2018-04-23 19:58:44 +00:00
|
|
|
{% if plain_links or not globals.home_icons %}
|
2018-04-23 20:01:11 +00:00
|
|
|
{% set separator = joiner('<span>|</span>') %}
|
2018-04-23 19:58:44 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2018-04-18 21:00:36 +00:00
|
|
|
{% macro attrs(obj) %}
|
|
|
|
{% set space = joiner(' ') %}
|
|
|
|
{% for id, val in obj -%}
|
|
|
|
{{ space() }}{{ id }}="{{ val }}"
|
|
|
|
{%- endfor %}
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
|
|
<div class="columns is-gapless">
|
|
|
|
<div class="column is-hidden-mobile"></div>
|
|
|
|
<div class="column">
|
2018-04-23 19:58:44 +00:00
|
|
|
<div id="linksColumn" class="columns is-mobile is-multiline is-centered {{ "is-gapless" if separator }}">
|
2018-04-19 06:22:53 +00:00
|
|
|
{% for link in globals.home_links -%}
|
2018-04-23 19:58:44 +00:00
|
|
|
{{ (separator() | safe) if separator }}
|
2018-04-18 21:00:36 +00:00
|
|
|
<div class="column is-narrow">
|
|
|
|
<a {{ attrs(link.attrs) | trim }}>
|
2018-04-23 19:58:44 +00:00
|
|
|
{% if separator -%}
|
|
|
|
{{ link.attrs.title }}
|
|
|
|
{%- else -%}
|
2018-04-18 21:00:36 +00:00
|
|
|
<span class="icon is-medium">
|
|
|
|
<i class="{{ link.icon }}"></i>
|
|
|
|
</span>
|
2018-04-19 06:22:53 +00:00
|
|
|
{%- endif %}
|
2018-04-18 21:00:36 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="column is-hidden-mobile"></div>
|
|
|
|
</div>
|