{# columns: (heading, [(href, text)]); links: the policy links (href, text) in the meta row. #}
{% props links: Vec<(String, String)>, copyright: String, columns: Vec<(String, Vec<(String, String)>)> = Vec::new() %}
<footer class="ui-footer">
<div class="ui-footer-inner">
{%- if !columns.is_empty() %}
<div class="ui-footer-cols">
{%- for (heading, items) in columns.iter() %}
<div><h2 class="ui-footer-heading">{{ heading }}</h2><ul>{% for (href, text) in items.iter() %}<li><a href="{{ href }}">{{ text }}</a></li>{% end %}</ul></div>
{%- end %}
</div>
{%- end %}
<div class="ui-footer-meta">
<ul>{% for (href, text) in links.iter() %}<li><a href="{{ href }}">{{ text }}</a></li>{% end %}</ul>
<span>{{ copyright }}</span>
</div>
</div>
</footer>