Skip to content

Commit c914f4d

Browse files
committed
Hide link to translations until there is > 1
1 parent 14fa4dd commit c914f4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_includes/footer.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,15 @@ <h3 class="alt-h3 mb-3">{{ site.data.locale[site.locale].footer.subscribe.headin
6565
{{ byline | replace: "[code]", code | replace: "[love]", love | replace: "[github]", github | replace: "[friends]", friends }}
6666
</div>
6767

68+
{% if site.translations.size > 1 %}
6869
<div class="text-small my-6">
6970
{% for translation in site.translations %}
7071
<a class="locale-chooser text-gray-light d-inline-block px-1"
7172
lang="{{ translation[0] }}"
7273
href="{{ page.url | prepend: translation[1].url }}?l={{ translation[0] }}">{{ translation[1].name }}</a>
7374
{% endfor %}
7475
</div>
76+
{% endif %}
7577
</div>
7678
</div>
7779
</footer>

0 commit comments

Comments
 (0)