Repository navigation
Expand file tree
/
Copy pathfooter.html
More file actions
48 lines (46 loc) · 2.17 KB
/
Copy pathfooter.html
File metadata and controls
48 lines (46 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<footer role="contentinfo">
<div class="container">
<div class="row">
<div class="col">
<div id="footerLinks">
<ul>
<li>
<a href="https://open-sdg.org">{{ page.t.general.built_using_open_sdg }}</a>
</li>
{% if site.footer_menu %}
{% for item in site.footer_menu %}
{%- assign item_path = item.path | t -%}
<li>
{% if item_path contains ":" %}
<a href="{{ item_path }}" target="_blank">{{ item.translation_key | t }}</a>
{% else %}
{%- assign item_path_first = item_path | slice: 0 %}
{%- if item_path_first == '/' -%}
{%- assign item_path = item_path | slice: 1, item_path.size -%}
{%- endif -%}
<a href="{{ page.baseurl }}{{ item_path }}">{{ item.translation_key | t }}</a>
{% endif %}
</li>
{% endfor %}
{% endif %}
{% if site.environment == 'staging' and site.site_config_form.enabled %}
<li>
<a href="{{ page.baseurl }}config">Configuration</a>
</li>
{% endif %}
{%- if site.languages.size > 1 and site.footer_language_toggle and site.footer_language_toggle != 'none' -%}
<li class="language-toggle-menu-footer">
{% include components/language-toggle.html location="footer" %}
<span class="no-js-language-toggle">{% include components/language-toggle-links.html %}</span>
</li>
{%- endif -%}
</ul>
</div>
</div>
</div>
{% include footer-custom.html %}
</div>
</footer>
{% include scripts.html %}
</body>
</html>