Skip to content

Commit

Permalink
Suggestions from pljones
Browse files Browse the repository at this point in the history
Co-authored-by: Peter L Jones <pljones@users.noreply.github.com>
  • Loading branch information
gilgongo and pljones authored Jun 10, 2024
1 parent 160b036 commit 90b2701
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions _includes/langselect.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
{% if lng == site.default_lang %}
{% capture langlink %} {{ page.url }}{% endcapture %}
{% capture lang_rel %}canonical{% endcapture %}
<li><a href="{{ langlink }}" rel="{{ lang_rel }}" data-slang="{{ lng }}">{{ lng }}</a></li>
{% else %}
{% capture langlink %}/{{ lng }}{{ page.url }}{% endcapture %}
{% capture lang_rel %}alternate{% endcapture %}
{% endif %}
<li><a href="{{ langlink }}" rel="{{ lang_rel }}" data-slang="{{ lng }}">{{ lng }}</a></li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
Expand Down

0 comments on commit 90b2701

Please sign in to comment.